Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CullingOptions

Flags used by ScriptableCullingParameters.cullingOptions to configure a culling operation.
Read time 1 minuteLast updated 4 days ago

Definition

[Flags]public enum CullingOptions

Remarks

Unity sets some of the CullingOptions flags with default values, and others depending on the properties of the Camera from which you obtained the ScriptableCullingParameters struct. You can override these values before performing the culling operation.

Fields

Value

Description

DisablePerObjectCullingWhen this flag is set, Unity does not perform per-object culling.
ForceEvenIfCameraIsNotActiveWhen this flag is set, Unity performs the culling operation even if the Camera is not active.
NeedsLightingWhen this flag is set, Unity culls Lights as part of the culling operation.
NeedsReflectionProbesWhen this flag is set, Unity culls Reflection Probes as part of the culling operation.
NoneUnset all CullingOptions flags.
OcclusionCullWhen this flag is set, Unity performs occlusion culling as part of the culling operation.
ShadowCastersWhen this flag is set, Unity culls shadow casters as part of the culling operation.
SkipTexturelessReflectionProbesWhen this flag is set, Unity excludes Reflection Probes without a valid ReflectionProbe.texture from the culling results.
StereoWhen this flag is set, Unity culls both eyes together for stereo rendering.