SubFSM not stop and will not be deleted from the memory even when the tree stops or disabled. This is repeated when a lot of bots , which all use the same trees
I can’t reproduce the problem you are facing where the SubFSM in a Behaviour Tree is still running after the BT gets disabled. Can you please share a bit more information on your setup?
Furthermore, please make sure that you are viewing the correct BehaviourTreeOwner. Sometimes it can become confusing if “Lock” is enabled in the NodeCanvas editor.
in the attached file it is shown that the tree continues to work, but the component is stopped and disabled.I use one tree on a prefab and I clone this prefab many times dynamically. I stop a tree not from the editor and from a script. What there can be a problem?