mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-15 22:25:07 +00:00
19 lines
523 B
C#
19 lines
523 B
C#
|
/// 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();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|