简体   繁体   English

Unity-如何在“项目”窗口中制作一个下拉列表

[英]Unity - How to make a dropdown list like the one in the Project window

I'm currently trying to make a dropdown list similar to the one you'll find in the project window. 我目前正在尝试制作一个类似于在项目窗口中找到的下拉列表。 I've found a "Unity Manual" page for such a thing but it doesn't go into how to actually make it. 我已经找到了一个“ Unity Manual”页面,但是它没有涉及到如何制作它。 Here is the page: http://docs.unity3d.com/Manual/script-Dropdown.html 这是页面: http : //docs.unity3d.com/Manual/script-Dropdown.html

A picture for reference: 图片供参考:

在此处输入图片说明

If you could help me out with this it would be greatly appreciated! 如果您能帮我解决这个问题,将不胜感激!

are you using any framwork, you can try to accomplish this using bootstrap dropdown classes so you can create menu with subs and declare subs directions example left, right, down as you please. 如果您使用的是任何框架,则可以尝试使用bootstrap下拉类来完成此操作,以便可以创建带有subs的菜单,并根据需要声明subs方向的示例,例如左右,向下。

http://getbootstrap.com/2.3.2/components.html http://getbootstrap.com/2.3.2/components.html

i used this link to combine for my needs, hope it helps 我使用此链接结合了我的需求,希望对您有所帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM