Search Issue Tracker

Not Reproducible



Found in

Issue ID




UnityEvent drawer does not request appropriate subtype for parameter field

Inspector Framework


Suppose you have a method like:

void SomeMethod(MyComponent c)

Adding this method to a UnityEvent in the Inspector works, but the object field shown for the argument is just of type 'Object', rather than type 'MyComponent.' This makes it awkward to wire up components as method arguments, because dragging and dropping GameObjects onto the field causes the GameObject itself to be stored as the argument rather than the component.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.