HeavenStudioPlus/Assets/Plugins/com.unity.uiextensions/Runtime/Scripts/Effects/CurlyUI/CUIText.cs

19 lines
523 B
C#
Raw Normal View History

2022-01-06 00:11:33 +00:00
/// Credit Titinious (https://github.com/Titinious)
/// Sourced from - https://github.com/Titinious/CurlyUI
namespace UnityEngine.UI.Extensions
{
[RequireComponent(typeof(RectTransform))]
[RequireComponent(typeof(Text))]
[AddComponentMenu("UI/Effects/Extensions/Curly UI Text")]
public class CUIText : CUIGraphic
{
public override void ReportSet()
{
if (uiGraphic == null)
uiGraphic = GetComponent<Text>();
base.ReportSet();
}
}
}