docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)