Hey everyone!
I’m creating a custom state node that is basically inheriting from the default Action State, but modified to run more in sync with Animator States. This custom state needs a reference to a blackboard variable, which is possible as the documentation shows in an example.
However, since this node is inheriting from ActionState and thus overrides OnNodeInspectorGUI, I need to manually call the BBParameter drawer for this variable since overriding this stops serialized variables from being drawn automatically.
How do I do this? There’s nothing in the documentation about this.
I’ll answer this one myself, after some digging it turned out there is a static function BBParameterEditor.ParameterField that does exactly this. Issue solved.