In my Behavior Tree I use a Blackboard with some variables, a few of them I need in multiple tasks and services of that BT. I wonder what is the best way to deal with this? By now I need to create a local variable in the task’s or service’s BP and a Blackoard Key Selector. Then in the BT itself I set the key selector to the according Blackboard variable. Then in each BP I do the following (in this example “Firefly” is the local reference variable and “Firefly Key” is the Blackboard Key Selector):
Ok, that works. However it also feels quite cumbersome, in particluar since I need to do all of that in every single BP in which I make use of the Blackboard variable. Now I am wondering, isn’t there an easier way to retrieve and store Blackboard variables form within a BT task/service BP?