21 lines
301 B
C#
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;
|
|
}
|
|
|
|
}
|