Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How do you change the ForwardRenderer on the camera

Discussion in 'Universal Render Pipeline' started by monark, Jun 8, 2020.

  1. monark

    monark

    Joined:
    May 2, 2008
    Posts:
    1,595
    Since upgrading to URP all my cameras are forced to using the same ForwardRenderer.
    In the drop down menu only one is available despite having several in my assets directory.
    Is this some new additional limitation of URP over LWRP?

    ForwardRendererAssets.jpg


    ForwardRenderers.jpg

    Why are we forced to use URP when it only supports half the features of LWRP....
     
  2. Jonathan_L

    Jonathan_L

    Joined:
    Jan 26, 2016
    Posts:
    38
    Try adding the other renderer to the renderer list in your URP asset

    upload_2020-6-8_12-29-47.png
     
    chadfranklin47 likes this.
  3. monark

    monark

    Joined:
    May 2, 2008
    Posts:
    1,595
    Thanks!
     
    Jonathan_L likes this.
  4. BadSpleen

    BadSpleen

    Joined:
    Oct 31, 2018
    Posts:
    3
    Is it possible to change which index in the Renderer List to use at runtime?
     
  5. StaggartCreations

    StaggartCreations

    Joined:
    Feb 18, 2015
    Posts:
    2,133
    You can use:
    Code (CSharp):
    1. UniversalAdditionalCameraData camData = yourCamera.gameObject.GetComponent<UniversalAdditionalCameraData>();
    2.  
    3. camData.SetRenderer(<index>);