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