renderQueue
The render queue to use as an override on this material.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public int renderQueue { get; set; }
Remarks
Use this property to override the render queue of the material, to change when Unity draws GameObjects that use the material.
Use a value of '-1' to use the default render queue value from the shader.
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.
Additional Resources: RenderQueue, Render queues and sorting behaviours in the Built-in Render Pipeline.