31 lines
868 B
C#
31 lines
868 B
C#
using UnityEngine.Scripting.APIUpdating;
|
|
|
|
|
|
namespace UnityEngine.Rendering.Universal
|
|
{
|
|
/// <summary>
|
|
/// Class for 2D composite shadow casters.
|
|
/// </summary>
|
|
[AddComponentMenu("Rendering/2D/Composite Shadow Caster 2D")]
|
|
[MovedFrom("UnityEngine.Experimental.Rendering.Universal")]
|
|
[ExecuteInEditMode]
|
|
public class CompositeShadowCaster2D : ShadowCasterGroup2D
|
|
{
|
|
/// <summary>
|
|
/// This function is called when the object becomes enabled and active.
|
|
/// </summary>
|
|
protected void OnEnable()
|
|
{
|
|
ShadowCasterGroup2DManager.AddGroup(this);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This function is called when the behaviour becomes disabled.
|
|
/// </summary>
|
|
protected void OnDisable()
|
|
{
|
|
ShadowCasterGroup2DManager.RemoveGroup(this);
|
|
}
|
|
}
|
|
}
|