Reply To: Multiple Behaviour Trees

Forums 💬 NodeCanvas 🗨️ General Discussion Multiple Behaviour Trees Reply To: Multiple Behaviour Trees

#15020
Gavalakis
Keymaster

    Hello and welcome 🙂

    A single BehaviourTreeOwner is needed regardless of the number of BehaviourTrees you are going to run with it.
    Think of it like the Animation component from which you can run any number of different AnimationClips.
    The BehaviourTreeOwner has a SwitchBehaviour method to switch between different BehaviourTrees at runtime.
    Here is an example:

    Let me know if that’s what you are after 🙂