Best practise for custom variables accessed by Behavior Tree?

ToyHunter

New member
I need to pre-define some custom typed variables for the behavior tree of NPCs. Given that I already read your doc and youtube tutorial.

Is there any Best Practice of doing so? Is it "Shared Variable"?
For example, I need to add variable with class of PlayerControl and it has to be accessible by the whole tree. Thanks and please keep on your great work!
 
Yes, definitely recommend going the SharedVariable route. This will allow you to same the same object reference through the behavior tree tasks.
 
Top