Class ShadowCasterGroup2D
Class for 2D shadow caster groups.
Inherited Members
Component.GetComponentIndex()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Scene)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
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 |
---|---|
int | 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. |