untiy script convert text into text mesh por code example Example: unity get textmesh pro component GetComponent<TMPro.TextMeshProUGUI>().text