Text myText = GameObject.Find("Canvas/Text").GetComponent<Text>(); myText.text = "Your text changed!";
using UnityEngine.UI; using TMPro; void Update() { TextMeshPro lemonsss = GetComponent<TextMeshPro>(); }
GetComponent<TMPro.TextMeshProUGUI>().text