using TMPro; public TextMeshProUGUI Text; //Text = transform.GetComponent<TextMeshProUGUI>(); Text.text = "test";