docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ShadowShape2DProvider

    Class ShadowShape2DProvider has methods called by a ShadowCaster2D to determine if it should be listed as a Casting Option, and to provide geometry if it is the active ShadowShape2DProvider

    Inheritance
    object
    ShadowShape2DProvider
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering.Universal
    Assembly: Unity.RenderPipelines.Universal.2D.Runtime.dll
    Syntax
    [Serializable]
    public abstract class ShadowShape2DProvider

    Methods

    Name Description
    Disabled(in Component)

    Called for the active ShadowShape2DProvider when the ShadowCaster2D becomes disabled

    Enabled(in Component)

    Called for the active ShadowShape2DProvider when the ShadowCaster2D becomes enabled

    IsShapeSource(in Component)

    Called for each component on a ShadowCaster2D's GameObject. Returns true if the provided component is the data source of the ShadowShapeProvider.

    OnBeforeRender(in Component, in Bounds, ShadowShape2D)

    Called before 2D lighting is rendered each frame

    OnPersistantDataCreated(in Component, ShadowShape2D)

    Called when the ShadowShape2DProvider is selected as the active Casting Option.

    Priority()

    Gets the priority to be listed in the ShadowCaster2D Casting Option drop down.

    ProviderName(string)

    Gets the name to be listed in the ShadowCaster2D Casting Option drop down.

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