- Home /
Is there a multiple selection ugui toggle group?
Is there a way to make a ugui toggle group accept multiple selections. Say I have seven options and I want the user to be able to select 2 (but only two). Is there something built in for this or do I need to start from scratch?
I would like to use a 'multiple toggle group' as well, in may case I need several menu options, but at least one must be active.
If anyone has a solution for this please share!
We already have the 'allowSwitchOff' option, we could also have a 'allow$$anonymous$$ultipleSelection' as well!
I also tried to inherit from ToggleGroup but without avail, the properties and methods are not declared virtual or protected, what a shame!
There is also a lot of people that had tried to add some cool features as pull requests over the public Unity site for the UI namespace! There are many cool features like cyclic menu transitions for Navigation and Visualization improvements, so let's see if I could implement this option over the weekend and submit it as a pull request as well.
Hello michellejean! I added a request for this feature in this post you might probably want to check it out! :)
Have a nice day, Lermy
Answer by lermy3d · Sep 03, 2015 at 09:40 PM
Hello michellejean, I am attaching a package containing custom scripts to achieve this. With ToggleCustom and ToggleCustomGroup included here you can now enjoy from multiple toggle selection in one group.
Due to the toggle class name changed I also needed to include Unity's an editor for the toggle so you can edit multiple toggles at once.
Please enjoy, Lermy
Your answer
Follow this Question
Related Questions
Put toggle label on left side of button and hover 1 Answer
Is there a way of using just basic gui.Buttons as toggles? 1 Answer
Toggle Switch 6 Answers
GUI Toggle Using Button Style Remain Active 1 Answer
Buttons in Rects, opening other Rects? 2 Answers