docs.unity.cn
    Show / Hide Table of Contents

    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
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023