Hello,
I'm trying to create a button where I can change it's text programmatically, but I can't seem to figure it out.
Before I started using the 2dToolkit, I would do this in the OnGUI method and simply create the button a new but with different text.
I think the toggle button would probably do what I want, but I still want to learn how to change to text to any arbitrary string, rather than just 1 of 2 possibilities.
While I'm on the topic of buttons, the way I'm handling their various events is to attach a script to the camera, and make each button a public property within the script. Is this a recommended approach?
Any help would be appreciated.
Oh, also, I'm really enjoying the 2dToolkit experience so far. Previously I used to waste a ridiculous amount of time just trying to position things correctly, now it looks like it's all done for me, a massive time saver. I think I still need to learn camera overrides to get the most benefit out of the tool, but it's great so far.
Thanks.