Version: Unity 6.1 Alpha (6000.1)
LanguageEnglish
  • C#

CullingOptions.DisablePerObjectCulling

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

Description

When this flag is set, Unity does not perform per-object culling.

By default, when using a Scriptable Render Pipeline, Unity performs per-object culling for Lights and Reflection Probes. This means that Unity pairs visible Lights and Reflection Probes with visible Renderers in their zone of influence when it performs a culling operation.

When this flag is set, Unity does not perform per-object culling of Lights or Reflection Probes. If you are creating a custom Scriptable Render Pipeline that does not use per-object lighting, set this flag to avoid wasted CPU operations.

Default value: unset.

Additional resources: ScriptableCullingParameters.cullingOptions, ScriptableRenderContext.Cull, CullingResults.