Class Provider2D
Base class for 2D shadow shape providers.
Inherited Members
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. |