- Home /
{Editor Window} drop down menu for object List
Hi! Thank you very much good sirs and mams for viewing this topic right off!
I'm programming a RPG game and I use lists all over the place for crafting, inventory , etc etc .
So the thing I wanted to know is there a way for me in a serialized object list to include a public drop down menu for indexing items.... What I'm saying is I have a list of items that is "pre gamed " before we add new objects to the actual inventory list .
The thing I need though to make my life simpler, instead of having to count the index values of every item to add to the inventory list...
I would like something in the unity editor that can pop open the list in a drop down menu much like the layer mask ... for the elements of my item list ... Because it would already contain the name of the items and its indexing to make it easier for me to organize is there something I could right up here... I'm using c#
{EDIT} Example : I have a craft list that needs requirements of certain items once I craft this item I have to pass the items element index to add this new crafitible item into my inventory list...
This craft list well is its own object class with a serializble tag marked... So inside this public class of no mono behavior I need to have a drop down menue stating its a public for the craft list so I do not need to pass the index I can just select it by name.... in a list...
Sincerely, Jake Casper
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Make Lists within a List 0 Answers
Confused about copying Lists! 1 Answer