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

Question How to change Transparency Sort Axis (or URP Renderer) runtime?

Discussion in 'Universal Render Pipeline' started by damelin, Mar 16, 2023.

  1. damelin

    damelin

    Joined:
    Jul 3, 2012
    Posts:
    64
    Hello, is there a way to switch the Renderer 2D Data's custom Transparency Sort Axis runtime with scripts?

    If not, is it possible to change (runtime) the Renderer 2D Data, assigned in the Universal Render Pipeline Asset, in the renderer list?

    Thank you!
     
    Last edited: Mar 16, 2023
  2. damelin

    damelin

    Joined:
    Jul 3, 2012
    Posts:
    64
    I have added a second Renderer in the PipelineAsset and assigned it to the camera. It seems to work fine.

    Is there any drawback of having more than one Renderer in the PipelineAsset? Should it be ignore by everything else?


    Screen Shot 2023-03-15 at 10.38.55 PM.png Screen Shot 2023-03-15 at 10.39.08 PM.png
     
  3. ciaranhappy1

    ciaranhappy1

    Joined:
    Oct 22, 2018
    Posts:
    15
    As far as I know, theres no issue with having multiple renderers in the asset. I think the intention is that you can have different renderers for different graphical levels, so in the games options the player can select which renderer they want, but I dont see why you couldnt use it for other stuff.
     
    damelin likes this.