unity getcomponent text mesh pro text code example Example: get component text mesh pro GetComponent<TMPro.TextMeshProUGUI>().text