- Home /
Question by
oliver-jones · May 19, 2011 at 12:50 PM ·
inspectordropdown
DropDown Menu In Inspector?
Hello,
I'm using JavaScript, and I want to know if there is a way to make a variable that has a drop down menu in the inspector?
Thanks
Comment
Best Answer
Answer by Joshua · May 19, 2011 at 12:55 PM
You can, using an enum as a variable it will automatically show up as a dropdown list. Alternatively you can make anything look like a dropdown if you write a custom inspector for your script.
Not going to lie - I have no idea how to mark this as the correct Answer?!?
Your answer
Follow this Question
Related Questions
Type for layer selection 3 Answers
DropDownList with string array in Editor Inspector 5 Answers
Show a dropdown for C# classes in inspector. 2 Answers
Dropdown like menus in the inspector 2 Answers
Drop down with sizes 1 Answer