Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


splitMask

Controls which objects are drawn based on their split culling region.
Read time 1 minuteLast updated 6 days ago

Definition

public CullingSplitMask splitMask { get; set; }

Remarks

When ScriptableCullingParameters.splitPlaneCount is greater than zero, each visible object is classified into a culling region by comparing its bounds against the split planes. Use this mask to include or exclude objects from a given region in a draw call.
The default value is CullingSplitMask.DrawAll, which draws all visible objects regardless of region. Set to CullingSplitMask.DrawCullingOnly to draw only objects outside the split planes, or CullingSplitMask.DrawSplitOnly to draw only objects inside the split planes.
When ScriptableCullingParameters.splitPlaneCount is zero, this mask has no effect.