- Home /
Creating a unity insepctor dropdown menu with content
Hey, so I've finished my inventory system and at the end I realized that I'll need some kind of a item database to stop me from typing out 100's of if statements. I've looked around and I can even remember working with something that resembled a drop down menu in the inspector. I've checked Enumeration and Classes but can't seem to make the show up in the inspector. I'm looking for something that would look like this:
Class items{ //name of the dropdown menu
//all these are in the dropdown menu
public string name;
public *another drop down menu to select type of item*; //kind of a array but with already preset options
public texture itemIcon;
}
Now I would be able to select how many drop down menus I want and in each I would be able to specify the item and then also reference to THAT specific drop down menu from another script. If this seem a bit stretched out I would apprentice knowing how to make a simple drop down menu in the inspector.
Your answer
Follow this Question
Related Questions
How to determine what type of class is being interated through in an array of multiple classes 1 Answer
Does anyone know of good tutorials for learning arrays and classes? 1 Answer
Item database with override functions 0 Answers
Enumerations in custom inspector C# 2 Answers
Inventory Help. 2 Answers