Answers for "change text on click in unity"

C#
10

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
3

unity how to change the text on a button

GameObject.Find("Button Name").GetComponentInChildren<Text>().text = "Button Text";
Posted by: Guest on January-18-2020

Code answers related to "change text on click in unity"

C# Answers by Framework

Browse Popular Code Answers by Language