I'm using this:
But the variable I'm looking for CurrentAcceleration is on the 5th BehaviorTree of that GameObject. Is it possible to specify a specific BehaviorTree when there are multiple trees on a GameObject?
C#:
public BehaviorTree TargetBehaviorTree;
var vector = (SharedVector3)TargetBehaviorTree.GetVariable("CurrentAcceleration"); //get CurrentAcceleration from BehaviorTree variable
currentAcceleration = vector.Value;
But the variable I'm looking for CurrentAcceleration is on the 5th BehaviorTree of that GameObject. Is it possible to specify a specific BehaviorTree when there are multiple trees on a GameObject?