How to set/get property 'renderer' from camera ?

Hello.
I created additional renderer with custom shader effect in URP. Now I want to change Renderer via code from Default Renderer to my custom Renderer ? How can I do this ? Thank you in advance.

The scriptable render pipeline is not part of the camera but a global setting. This can be read in the documentation about the SRP. So you just have to use Rendering.GraphicsSettings.renderPipelineAsset

var additionalCameraData = cam.transform.GetComponent();
additionalCameraData.SetRenderer(newIndex);
You can refer to the following link:

https://forum.unity.com/threads/urp-how-to-change-camera-renderer-at-runtime.956982/