Sin descripción
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CompositeShadowCaster2D.cs 988B

12345678910111213141516171819202122232425262728293031
  1. using UnityEngine.Scripting.APIUpdating;
  2. namespace UnityEngine.Rendering.Universal
  3. {
  4. /// <summary>
  5. /// Class for 2D composite shadow casters.
  6. /// </summary>
  7. [CoreRPHelpURL("2DShadows", "com.unity.render-pipelines.universal")]
  8. [AddComponentMenu("Rendering/2D/Composite Shadow Caster 2D")]
  9. [MovedFrom(false, "UnityEngine.Experimental.Rendering.Universal", "com.unity.render-pipelines.universal")]
  10. [ExecuteInEditMode]
  11. public class CompositeShadowCaster2D : ShadowCasterGroup2D
  12. {
  13. /// <summary>
  14. /// This function is called when the object becomes enabled and active.
  15. /// </summary>
  16. protected void OnEnable()
  17. {
  18. ShadowCasterGroup2DManager.AddGroup(this);
  19. }
  20. /// <summary>
  21. /// This function is called when the behaviour becomes disabled.
  22. /// </summary>
  23. protected void OnDisable()
  24. {
  25. ShadowCasterGroup2DManager.RemoveGroup(this);
  26. }
  27. }
  28. }