- Home /
Question by
dsillman2000 · Feb 25, 2014 at 03:10 AM ·
guibuttonif-statements
If button clicked statement?
I currently have coded a button in a GUI. However, I need to set up an "if" statement to make it do something. How can I do this?
Comment
Answer by getyour411 · Feb 25, 2014 at 03:11 AM
if(GUI.Button(new Rect(180, 180, 85, 35), new GUIContent("$$anonymous$$ain $$anonymous$$enu")))
points +=100000;
Didn't work.
Anybody else got some ideas that will actually work?
Your answer
Follow this Question
Related Questions
GUI RepeatButton can only be clicked once 2 Answers
Unity GUI Style with if Statements 1 Answer
Conversion method types(void to bool)[SOLVED] 1 Answer
Making a button desplay after pressing a button? 2 Answers
Button Turns Off and On Object 1 Answer