Files
soccar2d/Assets/Scripts/Utils/UI/CopyTextTMP.cs
T
2026-04-09 02:55:12 +05:30

21 lines
301 B
C#

using TMPro;
using UnityEngine;
[RequireComponent(typeof(TMP_Text))]
public class CopyTextTMP : MonoBehaviour
{
public TMP_Text origin;
TMP_Text _text;
void Awake()
{
_text = GetComponent<TMP_Text>();
}
void Update()
{
_text.text = origin.text;
}
}