using UnityEngine.Scripting.APIUpdating; namespace UnityEngine.Rendering.Universal { /// /// Class for 2D composite shadow casters. /// [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 { /// /// 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); } } }