Version: 2020.2
LanguageEnglish
  • C#

CullingOptions.ShadowCasters

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 culls shadow casters as part of the culling operation.

Default value: set, if your project uses the Scriptable Render Pipeline.

If your project uses the Built-in Render Pipeline, this value is unset if QualitySettings.shadows is set to ShadowQuality.Disable; otherwise, it is set. Note that changing this value has no effect in the Built-in Render Pipeline.

See Also: ScriptableCullingParameters.cullingOptions, ScriptableRenderContext.Cull, CullingResults.