change text of text mesh pro code example
Example 1: 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"
}
}
Example 2: how to change a textmesh pro text
TextMeshProUGUI TextPro;
TextPro.text = "Some String";