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