monochrono
New member
Hey, i'm having some trouble adding external behaviour trees at runtime to a subclass of the BehaviorTreeReference class. When I try to fetch it via script via:
behaviourTree.FindTask<BehaviorTreeReference>();
behaviourTree.FindTaskWithName("Job list");
I get null in both cases. It works fine if I try to get any other task in the behavior tree. I have also tried to subclass BehaviorTreeReference as was mentioned in some other posts but I simply can't get it to work. Do you have an example on how I can dynamically add external behaviour trees at runtime to a BehaviorTreeReference task at runtime?
behaviourTree.FindTask<BehaviorTreeReference>();
behaviourTree.FindTaskWithName("Job list");
I get null in both cases. It works fine if I try to get any other task in the behavior tree. I have also tried to subclass BehaviorTreeReference as was mentioned in some other posts but I simply can't get it to work. Do you have an example on how I can dynamically add external behaviour trees at runtime to a BehaviorTreeReference task at runtime?