Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question ScriptableRenderFeature: RenderQueueRange property does not display in the inspector - why?

Discussion in 'Universal Render Pipeline' started by tomekkie2, May 5, 2024.

  1. tomekkie2

    tomekkie2

    Joined:
    Jul 6, 2012
    Posts:
    988
    I have a ScriptableRenderFeature.
    This is a piece of code of it:

    Code (CSharp):
    1.     [System.Serializable]
    2.     public class SelectiveDepthPassSettings
    3.     {
    4.         public RenderPassEvent renderPassEvent = RenderPassEvent.AfterRenderingPrePasses;
    5.         public RenderQueueRange renderQueueRange = RenderQueueRange.all;
    6.         public Shader shader;
    7.     }
    8.     public SelectiveDepthPassSettings selectiveDepthPassSettings;
    9.  
    10.     [System.Serializable]
    11.     public class SelectiveDepthNormalsPassSettings
    12.     {
    13.         [field: ReadOnly]
    14.         public bool enabled = false;
    15.         public RenderPassEvent renderPassEvent = RenderPassEvent.AfterRenderingTransparents;
    16.         public RenderQueueRange renderQueueRange = RenderQueueRange.all;
    17.         public Shader shader;
    18.     }
    19.     public SelectiveDepthNormalsPassSettings selectiveDepthNormalsPassSettings;
    And this is how it displays in the inspector:
    RenderQueueRange.png

    The RenderQueueRange property doesn't show up on this.

    I have tried a number of recent versions of Unity, ranging between 2021 and latest beta and the RenderQueueRange property doesn't display in any of them.