georgejecook/UnityTimelineEvents

Don't Use BindingFlags.DeclaredOnly

jbienzms opened this issue · 0 comments

In TimelineEventsDrawer.cs and TimelineEventBehaviour.cs please consider removing the use of BindingFlags.DeclaredOnly. I understand you included it to limit the listing of methods that appear in the dropdown list, but this excludes inherited methods.

Sometimes I inherit from another behavior to add a new functionality without touching the code in the base class. But with BindingFlags.DeclaredOnly I will only see the methods that exist in the specific derived class.

If you don't want to make this the default option, please consider adding a checkbox option similar to the box you have for parameters.

Thanks!