Documentation

Unity Engine

Download Unity

Unity Engine

shadowDistance

Shadow drawing distance.
Read time 1 minuteLast updated 3 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static float shadowDistance { get; set; }

Remarks

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