Flow Canvas and Node Canvas

FlowCanvas Forums Support Flow Canvas and Node Canvas

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #917
    andreas
    Participant

    Can someone please direct me to the documentation detailing the “seamless integration with NodeCanvas BehaviourTrees and FSMs”?

    Andy

    #919
    Gavalakis
    Keymaster

    Hello Andy,

    To start off, please download the extension “bridge” packages from the Downloads section of this website and install them in your Unity project. These packages respectively will then allow your to add a nested flowscript node within NodeCanvas BehaviourTrees and FSMs. These new nodes also offer some help in their description shown in their inspector, although the usage is pretty straightforward.

    For example in the case of an FSM, (and once the extensions are installed) you simply need to add the “Nested/FlowScript State” node and hit “Create New” to create a new flowscript for the node.
    As soon as the FlowScript State is Entered, so will the flowscript become active and until the state Exits. More specifically:

    – When the flowscript becomes active (state Enter), the OnEnable event is called.
    – As long as the flowscript is active (state Update), the Update event is called, and all other events (like input) are evaluated.
    – When the flowscript becomes deactivated (state Exit), the OnDisable event is called.
    – To force the FlowScript State in the FSM to finish (and as such proceed to the next state if there is an OnFinish transition), you simply need to use and execute the “Flow Controllers/Finish” node in the flowscript.

    I will write a detailed documentation section about the integration as soon as I get back from holidays, but please let me know with which parts of the integration you need further help if any, and I would be glad to help you! 🙂

    Thanks!

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

    #920
    andreas
    Participant

    And voila! Here it is. You have a good time vacationing yourself and ill be in the basement with my computer.

    Thanks 🙂

    #921
    andreas
    Participant

    Ok, maybe one quick question: How do you get the flow to report Success or failure back to the Behavior tree? Or am I missing something?

    #922
    andreas
    Participant

    Nevermind found it. Thanks for help. Sorry for posting in wrong forum. Delete this or move perhaps. 🙂

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