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
1
Question by Patrik · Aug 06, 2010 at 12:40 PM · listdropdownboxcombo

How to make a combo box

Hi, i need to make a gui in unity and provide a combo box widget. Any drop-down list will do. Basically I need to provide the user a list of strings and then know which one the user has selected. Any ideas?

thanks

Comment
Add comment
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

4 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by Wolfram · Aug 06, 2010 at 12:46 PM

http://www.unifycommunity.com/wiki/index.php?title=SelectList

If you need custom strings, you can probably modify that script to do that.

Comment
Add comment · Show 3 · 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
avatar image Patrik · Aug 07, 2010 at 02:57 PM 0
Share

thanks, it is close to what i want. do you know how to achieve the dropdown effect?

avatar image Wolfram · Aug 07, 2010 at 03:19 PM 0
Share

Sorry, I never really used UnityGUI, I found this script searching google and the unity community...which is generally a good idea to do. I am certain somebody already programmed a dropdown menu for Unity, you could find out how they did it there and use it for your case. $$anonymous$$ost liekly, it's an animation (iTween/Ani$$anonymous$$ate/Unity) that is triggered when you click the list.

avatar image Patrik · Aug 08, 2010 at 05:33 PM 0
Share

Well, i think i will stick with that selectlist script for simplicity. thank you

avatar image
0

Answer by dkozar · Jul 11, 2012 at 08:50 PM

There is, actually, a ComboBox in my framework, check it out: http://edrivenunity.com/form2

Danko

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
avatar image
0

Answer by Uchiha Itachi · Feb 27, 2014 at 07:00 AM

I am very new to Unity, and I also want to do the same thing as yours. I am currently planning to use some UI combobox control which has the combobox dropdown property. I don't know if this be helpful to me or not. Anyway, the correct answer above offered seems to be practical!

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
avatar image
0

Answer by vikingfabian-com · Aug 27, 2014 at 01:40 PM

Working example for editor GUI

 int selected = 0;
 string[] options = new string[]
 {
     "Option1", "Option2", "Option3", 
 };
 selected = EditorGUILayout.Popup("Label", selected, options); 
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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

drop down list c# 1 Answer

A node in a childnode? 1 Answer

I need to create a drop DownList Like Structure in UI 0 Answers

ALWAYS SHOW DROPDOWN LIST 0 Answers

Does anyone know how to make a Dropdown inside an element of another Dropdown? 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