Enum ShadowCaster2D.ShadowCastingOptions
Options for what type of shadows are cast.
Namespace: UnityEngine.Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.2D.Runtime.dll
Syntax
public enum ShadowCaster2D.ShadowCastingOptions
Fields
| Name | Description |
|---|---|
| CastAndSelfShadow | Renders both a shadows for the sprite and a cast shadow. |
| CastShadow | Renders a shadows only a cast shadow. |
| NoShadow | Renders a sprite without shadow casting correctly on top of other shadow casting sprites |
| SelfShadow | Renders a shadows only for the sprite. |