You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/3rd/StompyRobot/SRF/Scripts/UI/SRText.cs

27 lines
561 B
C#

3 months ago
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);
}
}
}
}