how to use textmeshpro in script unity code example
Example 1: unity textmeshpro
using UnityEngine;
using TMPro;
public class quizManager : MonoBehaviour
{
public TextMeshProUGUI text;
// Start is called before the first frame update
void Start()
{
text.text = "example";
}
}
Example 2: unity get textmesh pro component
GetComponent<TMPro.TextMeshProUGUI>().text