- Home /
Question by
Alanimator · Dec 30, 2011 at 05:02 AM ·
none
toggle buttons
how do i keep the toggle buttons in the off position during game play . i.e always keeping the toggle buttons off unless clicked .
Comment
Answer by aldonaletto · Dec 30, 2011 at 05:12 AM
The state of a GUI.Toggle button is defined by the 2nd parameter - just set it to false and the button goes off:
// set curVal to false to turn the button off:
curVal = GUI.Toggle(rect, curVal, "Name");