change text mesh pro text in script code example
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"
}
}