Reply To: Proper way to copy blackboard from unbound BehaviourTree to BehaviourTreeOwner?

NodeCanvas Forums Support Proper way to copy blackboard from unbound BehaviourTree to BehaviourTreeOwner? Reply To: Proper way to copy blackboard from unbound BehaviourTree to BehaviourTreeOwner?

#15160
Gavalakis
Keymaster

Hello there,

Hmm. May I ask why do you need to copy the Graph Blackboard variables into the GraphOwner Blackboard Component?
When you load an Asset Graph into a GraphOwner (for example via owner.StartBehaviour(newGraph)), an instance of the graph is created and you can access the variables of the graph directly without the need to copy those variables into the Blackboard component attached along the GraphOwner. You can access those variables (the loaded graph’s blackboard variables) through owner.behaviour.blackboard. Since an instance of the graph is created when loading and starting an asset graph on a GraphOwner, modifying those variables will of course only modify the instance variables (and not the asset).

Can you please clarify? 🙂
Thanks!

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