Class ShadowCasterGroup2D
Class for 2D shadow caster groups.
Inherited Members
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
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.2D.Runtime.dll
Syntax
[MovedFrom(false, "UnityEngine.Experimental.Rendering.Universal", "com.unity.render-pipelines.universal", null)]
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. |