Files
PrinceOfGlory/Packages/Custom/com.unity.render-pipelines.universal@14.0.9/Runtime/2D/Shadows/CompositeShadowCaster2D.cs
kridoo 6e91a0c7f0 111
2025-09-15 17:32:08 +08:00

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);
}
}
}