I'm having a problem with a script I'm trying to write. It's simple, but the answer's been evading me for several hours. I'm trying to create a main menu on a button click. Here's my script:
Is there anything absurdly simple I'm missing? Anything absurdly complex? I'm trying to learn how to use the new GUI, but I'm afraid it's beyond my grasp if someone doesn't give me a hand. Thanks for any and all answers -
What your code does is show the menu only when the the button has been clicked, but only for that frame. You need to set a variable when the button is clicked, then check every frame if the variable has been set, and draw the menu if it has. Something like this should work (untested):
answered Mar 21 '10 at 06:54 PM
I tried this and my script and this line,
var showMenu : System.bool = false;
wanted to be.
var showMenu : System.Boolean = false;
answered Mar 21 '10 at 10:54 PM
try this it might help you out.
answered Dec 08 '10 at 07:08 AM