Answers for "unity how to change text in script"

C#
9

unity change text

// To change text of a text UI element use th combination below
textGameObject.GetComponent<UnityEngine.UI.Text>().text = "text";
Posted by: Guest on February-20-2020
0

unity how to change text in script

Text myText = GameObject.Find("Canvas/Text").GetComponent<Text>();
myText.text = "Your text changed!";
Posted by: Guest on February-13-2020

Code answers related to "unity how to change text in script"

C# Answers by Framework

Browse Popular Code Answers by Language