Documentation

Unity Engine

Download Unity

Unity Engine

shadowCascades

Number of cascades to use for directional light shadows.
Read time 1 minuteLast updated 2 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
Warning
Deprecated. QualitySettings.shadowCascades is deprecated and will be removed in a future release. It's used only by the Built-In Render Pipeline, which is no longer supported. To set the number of shadow cascades in the Universal Render Pipeline (URP), add a Lighting > Shadows override to a Volume Profile and set Cascade Count instead. #from(7000.0)
public static int shadowCascades { get; set; }

Remarks

Important: This API is compatible only with the Built-In Render Pipeline, which is no longer supported. To set the number of shadow cascades in the Universal Render Pipeline (URP), use Shadows > Cascade Count in the URP Asset.
Additional Resources: Quality Settings.