Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Resolved Specifying renderer in camera doesn't work?

Discussion in 'Universal Render Pipeline' started by alloystorm, Jan 18, 2024.

  1. alloystorm

    alloystorm

    Joined:
    Jul 25, 2019
    Posts:
    90
    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) Screenshot 2024-01-19 103705.png
    The reflection camera is set to use ReflectionRenderer
    Screenshot 2024-01-19 103720.png

    But from Frame Debugger it clearly shows that both cameras are using the PCRenderer
    Screenshot 2024-01-19 103750.png

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

    alloystorm

    Joined:
    Jul 25, 2019
    Posts:
    90
    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.