Graph Deserialize, loads up/updates the current graph from the JSON data. It does not create a new graph.
Unfortunately what you are after though is not really supported since such data (like elapsed time of a node) are not serialized.
What is supported instead, is to save/load the blackboard variables, thus you could restore the state of the AI object this way, but of course not the internal state of each action, like for example the elapsed time of an Wait action task or the current running node.
Instead the BT will re-execute from start, but considering that it is parametrized with variables, it would kind of “restore” it’s state based on those variables.
Does this suffice for your case?
Thanks
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.