Support Forum

Serialize and deserialize path itself

Is there any way to serialize and deserialize calculated path itself? I could not find that in docs (there was only info on saving graphs).

We’re using custom serialization code and we got bug report that after deserialization there is a few frames peek where all the actors on scene recalculate their paths, where it should come from save system. No to mention there is (I admin, a small) possibility of save scamming (the path calculated may be slighty different with each load).

Hi

There is no such code I’m afraid. I don’t think it’s particularly easy since the paths need to refer to the nodes in the graph. I’d recommend including the path recalculation time in your loading screen.

Okay, thanks - will do it that way