unity setting a button texty 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";