inspector dynamic dropdown list
I have been searching the web but have not been able to find a solution to my problem as of yet. I am currently writing a program for the asset store which requires things to be added to a list dynamically from outside the script. What I am looking to have is a dropdown menu similar to the one in the mesh renderer called Materials, where the number of variables can be input and then in the drop down menu that many fields will be available. I realize that there are ways to do this with new pop up windows, but I would prefer to keep it all in the inspector if I can. Thanks in advance for the help.
Answer by OutOfRam · Nov 07, 2015 at 03:40 AM
Ok so I now see that this is a stupid question, My apologies. just in case someone else is unsure, all you need to do is make a list
public List<Transform> myList = new List<Transform>();
I feel dumb
Your answer
Follow this Question
Related Questions
How can I have custom inspector variables in an object list? 0 Answers
reorderable list of reorderable list items? (Editor) 0 Answers
Attach MonoBehaviour in Inspector to List of MonoBehaviours on a Component 0 Answers
Inspector List: DropDown list Update regarding Prefab in asset folder 1 Answer
Dropdown.ClearOptions does not work 1 Answer