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

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

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

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

Danko

Working example for editor GUI

int selected = 0;
string[] options = new string[]
{
    "Option1", "Option2", "Option3", 
};
selected = EditorGUILayout.Popup("Label", selected, options);