Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by michellejean · Feb 24, 2015 at 12:42 AM · uiguitoggle

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?

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image lermy3d · Aug 27, 2015 at 06:27 PM 0
Share

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!

avatar image lermy3d · Aug 27, 2015 at 09:52 PM 0
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.

avatar image lermy3d · Aug 28, 2015 at 01:38 PM 0
Share

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

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


togglecustom-v1-multiple-selection.zip (3.6 kB)
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

20 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges