access textmeshpro in script unity code example Example: unity get textmesh pro component GetComponent<TMPro.TextMeshProUGUI>().text