docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Provider2D

    Base class for 2D shadow shape providers.

    Inheritance
    object
    Provider2D
    Light2DProvider
    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 Provider2D

    Methods

    MenuPriority()

    Returns the priority used to order this provider in the ShadowCaster2D Casting Option dropdown.

    Declaration
    public virtual int MenuPriority()
    Returns
    Type Description
    int

    The menu priority for this provider.

    OnAwake()

    Called when the provider is initialized.

    Declaration
    public virtual void OnAwake()

    OnDrawGizmos(Transform)

    Declaration
    public virtual void OnDrawGizmos(Transform transform)
    Parameters
    Type Name Description
    Transform transform

    OnSelected()

    Declaration
    public virtual void OnSelected()

    UsesComponentData()

    Indicates whether this provider reads data from a component on the GameObject.

    Declaration
    public virtual bool UsesComponentData()
    Returns
    Type Description
    bool

    True if the provider uses component data; otherwise, false.

    In This Article
    Back to top
    Copyright © 2026 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)