mirror of
https://github.com/ConjureETS/Unity_Utils.git
synced 2026-03-24 13:00:58 +00:00
15 lines
272 B
C#
15 lines
272 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
|
|
namespace Util.UiComponents
|
|
{
|
|
public class TextComponent : ComponentBase
|
|
{
|
|
[SerializeField] private TMP_Text text;
|
|
|
|
public void SetText(string newText)
|
|
{
|
|
text.text = newText;
|
|
}
|
|
}
|
|
} |