Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

DrawingSettings.splitMask

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public CullingSplitMask splitMask;

Description

Controls which objects are drawn based on their split culling region.

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.

Additional resources: CullingSplitMask, ScriptableCullingParameters.splitPlaneCount, ScriptableRenderContext.DrawRenderers.