- Home /
Select which component is dragged into a public variable.
Hi,
I'm setting up a system to allow our designer to quickly prototype specific behaviors in our levels. There is a management script with an array of behaviors exposed in the inspector. Behavior is a parent class that has a variety of different behavior scripts inheriting from it. When a game object is dragged into the data field it automatically grabs the top component, which has allowed me to debug the system by changing the order of the components on the game object, but I'd like to find a more elegant solution before passing it onto the designer.
At this point the best thing I can think of is an editor script to make reordering the components easier.
If anyone has any inspiration for a better solution I'd really appreciate it.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Custom Inspector to Load Instance Values 0 Answers
[solved]Using WWW instead of resources.load causes hang 1 Answer
When do the Attributes get set? 1 Answer