- Home /
Dropdown selection in inspector.
I want to make a dropdown menu in inspector like in Rigidbody's "Body Type". If you choose "Dynamic", the variable list will change. You'll get "Material", "Mass", "Linear Drag" etc. But if you change the body type to "Kinematic", for example, Mass and Linear Drag will hide in there. What I'm trying to do is a dropdown that you can change beetwen actions like Play Animation, Enter Dialogue or Play Sound. All of them got diffrent values to edit. How can I make something like this? Should I use enum's or something?
Your answer
Follow this Question
Related Questions
Type for layer selection 3 Answers
Show a dropdown for C# classes in inspector. 2 Answers
DropDownList with string array in Editor Inspector 5 Answers
Enums as a dropdown in inspector in C# 2 Answers
Creating a dropdown menu for variables? 2 Answers