SRText.cs 440 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Diagnostics;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. namespace SRF.UI
  6. {
  7. [AddComponentMenu("SRF/UI/SRText")]
  8. public class SRText : Text
  9. {
  10. //[DebuggerBrowsable(DebuggerBrowsableState.Never)]
  11. public event Action<SRText> LayoutDirty;
  12. public override void SetLayoutDirty()
  13. {
  14. base.SetLayoutDirty();
  15. if (this.LayoutDirty != null)
  16. {
  17. this.LayoutDirty(this);
  18. }
  19. }
  20. }
  21. }