Open TiredOfEverything opened 1 year ago
I've implement one on my own project. Though I did not make it a standalone one, but here you can change it as one you need:
the drawer: https://github.com/TylerTemp/SaintsField/blob/master/Editor/Drawers/AnimatorStateAttributeDrawer.cs
SaintsPropertyDrawer
to PropertyDrawer
GetFieldHeight
to override GetPropertyHeight
and adjust parameters as needed.DrawField
to override OnGUI
and adjust parametersAnd should do the work
An attribute that fills a dropdown with all the names of the possible Animator states for an Animator.