Calling BBParameter drawer in FSMState.OnNodeInspectorGUI?

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13278
    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.

      #13280
      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.

        #13279
        Gavalakis
        Keymaster

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

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