1234567891011121314151617181920212223242526 |
- namespace SRF.UI
- {
- using System;
- using Internal;
- using UnityEngine;
- using UnityEngine.UI;
- /// <summary>
- /// Adds a LayoutDirty callback to the default Text component.
- /// </summary>
- [AddComponentMenu(ComponentMenuPaths.SRText)]
- public class SRText : Text
- {
- public event Action<SRText> LayoutDirty;
- public override void SetLayoutDirty()
- {
- base.SetLayoutDirty();
- if (LayoutDirty != null)
- {
- LayoutDirty(this);
- }
- }
- }
- }
|