- Home /
How to get a drop-down list of options defined by another object in editor?
I am working on bullet impact effects. Let's say I want to create a master list of all possible types of hit effects (ie, drywall, flesh, wood, etc). I want this list to be in a singleton that will handle pooling these effects, so the list is defined in the editor like this:
All of my game objects that will have an effect when hit will have this script. How do I make it so that each of them has to choose from a drop-down list of options as defined by the singleton?
Your answer
Follow this Question
Related Questions
Access serialized field in custom editor 2 Answers
C#6 Serializefield is not working with getter and setter 1 Answer
How to properly serialize fields and store them for use in play mode? 1 Answer
Why can't a MonoBehaviour subtype with generic arguments be serialized in a list since Unity 4.5? 0 Answers
If I have a bool method, how can I see in the inspector whether it returns true or false? 2 Answers