The text to be displayed.
Note: Rich Text Tags can be used to alter the appearance of the text. See Rich Text Tags for more information.
See also: TextMeshPro.SetCharArray or TextMeshPro.SetText as alternatives to setting the text to be displayed.
using UnityEngine; using System.Collections; using TMPro; public class ExampleClass : MonoBehaviour { void Awake() { TextMeshPro textmeshPro = GetComponent<TextMeshPro>(); textmeshPro.text = "Example of text to be displayed."; } }