Documentation

Unity Engine

Download Unity

Unity Engine

ShadowQuality

Determines which type of shadows should be used.
Read time 1 minuteLast updated 2 days ago

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public enum ShadowQuality

Remarks

Important: This API is compatible only with the Built-In Render Pipeline, which is no longer supported. To control shadows in the Universal Render Pipeline (URP), use Cast Shadows under Lighting > Main Light and Additional Lights, and Soft Shadows under Shadows in the URP Asset.
The available options are Hard and Soft Shadows, Hard Shadows Only and Disable Shadows.
Additional Resources: QualitySettings.shadows, Light.shadows.

Fields

Value

Description

AllHard and Soft Shadows.
DisableDisable Shadows.
HardOnlyHard Shadows Only.