Saving the running state of a behavior tree

wzxinchen

New member
I want to save the running state of a behavior tree, for example, save the running state as a json string, and then I hope that I can restore this string directly to put the behavior tree in a certain running state. Used to save and read the game. How to achieve?
 
I currently want to implement the function of saving and reading archives, because the behavior tree plugin does not support it, so I can't implement this function at the game level. Indeed, I can achieve the same effect by adding a few more nodes to the behavior tree, but this will make the already complex logic more complicated and difficult to debug.
If you are really unwilling to implement this feature, I can only change to other plug-ins that support this feature.
 
Top