Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Changing priority from code

Discussion in 'Universal Render Pipeline' started by KospY, Dec 17, 2019.

  1. KospY

    KospY

    Joined:
    May 12, 2014
    Posts:
    99
    Hey guys,

    Does anyone know how to change the priority slider from code in URP?


    So far I tried :
    Code (CSharp):
    1. material.SetInt("_Priority", number);
    2. material.renderQueue = number;
    3. renderer.rendererPriority = number;
    But none of this work :(
    I tried to take a look at the documentation but nothing is explained about how to change this value.
     
  2. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,158
unityunity