Question by
TheAmazingB74 · Sep 12, 2015 at 05:56 PM ·
gui
How do I switch text on a button
I just wanna switch the text on the button to something else. Having a VERY hard time figuring it out. I made the button just fine. It enables and disables the item I want, Now when I click it I just want it to change it's text. Please just come from the standpoint that I am a total noob moron, but it just needs to switch the text ftom aim, to shoot,
Comment
Best Answer
Answer by hexagonius · Sep 12, 2015 at 10:14 PM
yourButton.GetComponent<Text>().text = "shoot";