Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


renderQueue

The default render queue for this shader. (Read Only)
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public int renderQueue { get; }

Remarks

Since different Render Pipelines require different render passes a shader's render queue depends on the active Render Pipeline.
Note: When Unity runs in batch mode, Scriptable Render Pipelines (SRPs) are only loaded the first time something renders. Loading an SRP modifies the subshader selected for a given material, which can change the value of this property.