Specifying renderer in camera doesn't work?

Here’s my setup,

  • 2 cameras in the scene, each set to different renderers
  • First camera is rendered into a RenderTexture which is then used as a texture

Main camera is set to use the Default Renderer (PCRenderer)


The reflection camera is set to use ReflectionRenderer

But from Frame Debugger it clearly shows that both cameras are using the PCRenderer

This is happening in both 2023.1.19 and 2023.2.5, I haven’t tested other versions.

Figured it out.

I was setting the cameraType to be reflection, and that somehow prevented the specified renderer to work.

reflectCamera.cameraType = CameraType.Reflection;

Removing this line resolves the issue.