2024-10-23 17:30:59 +00:00
|
|
|
#if UNITY_EDITOR
|
2024-10-21 16:20:39 +00:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UguiToolkit.Editor;
|
|
|
|
using UnityEngine;
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
public class TextEntity : BaseEntity<Text, LayoutInfo.TextInfo>
|
|
|
|
{
|
|
|
|
protected override void OnApplyData(Text ui, LayoutInfo.TextInfo elementInfo)
|
|
|
|
{
|
|
|
|
ui.text = elementInfo.text;
|
|
|
|
ui.fontSize = (int)elementInfo.size;
|
|
|
|
ui.color = elementInfo.color;
|
|
|
|
}
|
2024-10-23 17:30:59 +00:00
|
|
|
}
|
|
|
|
#endif
|