change button tmp text unity c# code example
Example 1: unity change text
// To change text of a text UI element use th combination below
textGameObject.GetComponent<UnityEngine.UI.Text>().text = "text";
Example 2: unity how to change the text on a button
GameObject.Find("Button Name").GetComponentInChildren<Text>().text = "Button Text";