Do variables carry through referenced behavior trees?

gumboots

Member
Hi there!

I've been trying to test whether tree variables carry through multiple referenced behaviors if any of them doesn't have that variable defined. I'm getting mixed results which is no doubt due to something in my setup, so I was hoping to get an answer here.

That is, if I have a number of behaviors chained down, does each tree in between need to have a variable defined for the value to be sent from the very first one? (I'm not explicitly defining any variables in the Behavior Tree Reference task).

Thanks!
 
Yes, each subtree needs to have the variable defined with the same type and the same name.
 
Top