Guys,
How do I get the text component on a Button by script on the new GUI?
Thanks!
The Text component is actually on a child object of the button, so (assuming you have a Button reference called myButton):
myButton.GetComponentInChildren<Text>().text = "new text";
Nevermind. I forgot to set
using UnityEngine.UI;