UnityGame/Library/PackageCache/com.unity.render-pipelines.universal/Runtime/2D/Shadows/CompositeShadowCaster2D.cs

32 lines
988 B
C#
Raw Normal View History

2024-10-27 10:53:47 +03:00
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Rendering.Universal
{
/// <summary>
/// Class for 2D composite shadow casters.
/// </summary>
[CoreRPHelpURL("2DShadows", "com.unity.render-pipelines.universal")]
[AddComponentMenu("Rendering/2D/Composite Shadow Caster 2D")]
[MovedFrom(false, "UnityEngine.Experimental.Rendering.Universal", "com.unity.render-pipelines.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);
}
}
}