Calling BBParameter drawer in FSMState.OnNodeInspectorGUI?

NodeCanvas Forums General Discussion Calling BBParameter drawer in FSMState.OnNodeInspectorGUI?

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15351
    solepilgrim
    Participant

    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.

    #15354
    solepilgrim
    Participant

    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.

    #15357
    Gavalakis
    Keymaster

    Hello,
    Indeed BBParameterEditor.ParameterField is exactly what you need 🙂

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.