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