Files
Test/Library/PackageCache/com.unity.render-pipelines.universal@ffe395a3a1d1/Runtime/2D/Shadows/CompositeShadowCaster2D.cs
T
2026-11-01 23:39:55 +02:00

33 lines
1.0 KiB
C#

using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Rendering.Universal
{
/// <summary>
/// Class for 2D composite shadow casters.
/// </summary>
[CoreRPHelpURL("2DShadows", "com.unity.render-pipelines.universal")]
[Icon("UnityEngine/UI/Shadow Icon")]
[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);
}
}
}