Class ShadowCasterGroup2D
Class for 2D shadow caster groups.
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
Namespace: UnityEngine.Rendering.Universal
Syntax
[MovedFrom("UnityEngine.Experimental.Rendering.Universal")]
public abstract class ShadowCasterGroup2D : MonoBehaviour
Methods
GetShadowCasters()
Returns a list of registered 2D shadow casters.
Declaration
public List<ShadowCaster2D> GetShadowCasters()
Returns
Type | Description |
---|---|
List<ShadowCaster2D> | A list of 2D shadow casters that have been registered.. |
GetShadowGroup()
Returns the shadow group.
Declaration
public int GetShadowGroup()
Returns
Type | Description |
---|---|
Int32 | The shadow group used. |
RegisterShadowCaster2D(ShadowCaster2D)
Registers a 2D shadow caster.
Declaration
public void RegisterShadowCaster2D(ShadowCaster2D shadowCaster2D)
Parameters
Type | Name | Description |
---|---|---|
ShadowCaster2D | shadowCaster2D | The 2D shadow to register. |
UnregisterShadowCaster2D(ShadowCaster2D)
Unregisters a 2D shadow caster.
Declaration
public void UnregisterShadowCaster2D(ShadowCaster2D shadowCaster2D)
Parameters
Type | Name | Description |
---|---|---|
ShadowCaster2D | shadowCaster2D | The 2D shadow to unregister. |