Documentation

Unity Engine

Unity Engine

layerMask

Unity renders objects whose GameObject.layer value is enabled in this bit mask.
Read time 1 minuteLast updated 2 months ago

Definition

public int layerMask { get; set; }

Remarks

Additional Resources: ScriptableRenderContext.DrawRenderers, GameObject.layer, Creating a simple render loop in a custom render pipeline.