Answers for "using text mesh pro in script"

C#
10

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"      
    }
}
Posted by: Guest on August-12-2020
9

get component text mesh pro

GetComponent<TMPro.TextMeshProUGUI>().text
Posted by: Guest on May-22-2020

C# Answers by Framework

Browse Popular Code Answers by Language