• 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 /
  • Help Room /
avatar image
0
Question by Mih4wK · Feb 13, 2016 at 03:02 PM · 1080p

[Unity5] Custom UI multiple Checkbox with Buttons?

Hey guys, I am trying to develope a multiselectable, dynamically panel.

It should look something like this:

alt text

OnClick or selecting those, it should change it's color about 10% darker (so one realizes, it's pressed)

How would you guys do it? At the moment, I'm thinking about having a panel in which I would dynamically append buttons to it. But doing it this way, it would be inefficiently, wouldnt it? Because actually, the 'buttons' should only change their value (isActivate or !isActive), which a checkbox has it's sense for, and in addition, I'd have to render the buttons according to their value by myself. So is there a way to edit the checkboxes (are there even checkboxes in Unity5d actually, lol?)

Kind Regards

PS: Sorry for the wrong Tag, I couldnt chose some like: Unity5d GUI UI Checkboxes or something, hasn't been found

idea.png (3.6 kB)
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 Mako-Infused · Feb 13, 2016 at 03:24 PM 0
Share

Are you looking to do this via Unity's UI system, or the legacy GUI system?

I assume you know the difference between the two, if not; the UI system is more GameObject driven, while GUI tends to be script driven. The UI system is much more efficient as well.

avatar image Mih4wK Mako-Infused · Feb 13, 2016 at 03:55 PM 0
Share

Someone said, that one should use the legacy GUI System only for testing, so I decide for UI. Wanted to express that by saying Unity 5, sorry.

And I got another, tiny question: When I have a prefab, how can I link it e.g. a button without it being existant on a panel or something? At the moment, I got a panel and created an empty prefab. Now I create a button and I can link it to the asset (drag&drop), but then there is automatically the created button on my panel, too.

Thank you for your help.

avatar image Mako-Infused Mih4wK · Feb 13, 2016 at 07:12 PM 0
Share

Ahh yeah, the GUI is legacy, but UI (without the G) is generally used to refer to the new UI system. I agree, the legacy should (except for rare cases) be only used for prototyping.

Additional questions should be posted in their own thread, check out the FAQ for more info.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Mih4wK · Feb 14, 2016 at 07:31 PM

bumping thread

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

40 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 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

How can I play a 360 video that is 1.6gig?,Cant play a 360 video that is 1.8gig 0 Answers

How to drag the scene to main camera? 0 Answers

Why do Unity Remote not work with Ipad air 3? 0 Answers

no 1920 x 1080 (hdmi) resolution anymore in unity 5.3 ? 1 Answer

2D Tileset with a 3D Collider 0 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