Reply To: Multiple Behaviour Trees

NodeCanvas Forums General Discussion Multiple Behaviour Trees Reply To: Multiple Behaviour Trees

#9305
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 🙂

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