Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to use text mesh pro in script

//needed in order to use Text Mesh Pro
using TMPro; 

public class YourClass : MonoBehaviour
{
	public TextMeshProUGUI InfoText;
    
    public void Something() {
    	//Write to the text mesh pro element InfoText
    	InfoText.text = "Write whatever text you want here!";
    }
}
 
PREVIOUS NEXT
Tagged: #text #mesh #pro #script
ADD COMMENT
Topic
Name
5+7 =