- Home /
Question by
JackJones · Jul 22, 2010 at 09:14 PM ·
gui-buttonfalsetrue
GUI Button to toggle true false when pressed
if(GUI.Button(Rect(150,700,50,50),"Cast")) { ShowPowers = true; }
this is to bring up a button menu however i want it so that if the button is pressed again the ShowPowers = false; please help thanx :)
Comment
Best Answer
Answer by Mike 3 · Jul 22, 2010 at 09:17 PM
if(GUI.Button(Rect(150,700,50,50),"Cast")) { ShowPowers = !ShowPowers; }
That is extreamly simple, i will be using that from now on, thanks
Your answer
Follow this Question
Related Questions
Boolean values not behaving as expected. Please Help?! 0 Answers
Why won't my if result to true? 1 Answer
hi, am getting these two errors 1 Answer
true and false wont work! 4 Answers
Problems with save 1 Answer