change button text unity script code example
Example: unity how to change the text on a button
GameObject.Find("Button Name").GetComponentInChildren<Text>().text = "Button Text";
GameObject.Find("Button Name").GetComponentInChildren<Text>().text = "Button Text";