- Home /
Only one Checkbox (Bit toggle) at the time
Hello,I am using bitverse-unity-gui but I have a problem, I have 5 bit toggle, and I would like that only one was selected at a time, when you select one, uncheck the other and vice versa.
Answer by Necronomicron · Sep 04, 2016 at 09:08 AM
If you are using Toggle
s, add ToggleGroup
to the parent of these objects and set this group to all toggles you need.
Answer by alee26 · Aug 27, 2012 at 10:33 PM
I suggest you to use GUI.SelectionGrid instead of toggle. Here is the documentation page: http://docs.unity3d.com/Documentation/ScriptReference/GUI.SelectionGrid.html
EDIT: I found two more sample code for toggling. First: http://answers.unity3d.com/questions/129813/using-guitoggle-to-onoff-buttons.html Second: http://forum.unity3d.com/threads/52248-Mutually-exclusive-toggle-buttons But i didn't tried them. I have choosen GUI.SelectionGrid instead...
Your answer
Follow this Question
Related Questions
why cant load "bitverse-unity-gui"? 0 Answers
GUI window popup button 1 Answer
Little help with GUI Toggle needed 1 Answer
GuiTexture toggle on keypress. 2 Answers
Close a GUI.Toggle when another opens in a different script? 0 Answers