CompositeShadowCaster2D.cs 544 B

1234567891011121314151617181920212223
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace UnityEngine.Experimental.Rendering.Universal
  5. {
  6. [AddComponentMenu("Rendering/2D/Composite Shadow Caster 2D (Experimental)")]
  7. [ExecuteInEditMode]
  8. public class CompositeShadowCaster2D : ShadowCasterGroup2D
  9. {
  10. protected void OnEnable()
  11. {
  12. ShadowCasterGroup2DManager.AddGroup(this);
  13. }
  14. protected void OnDisable()
  15. {
  16. ShadowCasterGroup2DManager.RemoveGroup(this);
  17. }
  18. }
  19. }