Hi again!
Another attempt to do something BD wasn't really designed to do...
I have broken my rather large Behavior Tree into separate ExternalBehaviors. This is great for modularity! However it is difficult to track SharedVariables, particularly when a new one is added. That is, ensuring all nested Behavior Trees have the correct SharedVariables declared to eventually be passed down to a tree that uses it. Can you think of anyway to easily manage this? Going through all of my trees in order manually would be far too time consuming, and wouldn't solve adding new variables later.
I had the idea of traversing the tasks of a Tree to check for any variables that should be mapped, but I couldn't seem to iterate the tasks. There'd also be the issue of actually making sure these values were assigned correctly etc.
Any ideas are greatly appreciated!
Another attempt to do something BD wasn't really designed to do...
I have broken my rather large Behavior Tree into separate ExternalBehaviors. This is great for modularity! However it is difficult to track SharedVariables, particularly when a new one is added. That is, ensuring all nested Behavior Trees have the correct SharedVariables declared to eventually be passed down to a tree that uses it. Can you think of anyway to easily manage this? Going through all of my trees in order manually would be far too time consuming, and wouldn't solve adding new variables later.
I had the idea of traversing the tasks of a Tree to check for any variables that should be mapped, but I couldn't seem to iterate the tasks. There'd also be the issue of actually making sure these values were assigned correctly etc.
Any ideas are greatly appreciated!
Last edited: