how to edit text mesh pro text
Code Example - how to edit text mesh pro text
using UnityEngine;
using System.Collections;
using TMPro;
public class ExampleClass : MonoBehaviour
{
public TextMeshProUGUI textDisplay;
void Example()
{
textDisplay.text = "Example Text"
}
}
unity get textmesh pro component
GetComponent<TMPro.TextMeshProUGUI>().text
textmeshpro text
using TMPro;
public TextMeshProUGUI text;
text.text = "Text updated. <sub>Subscript</sub> <sup>Superscript</sup> <b>Bold</b> <u>Underlined</u>";