I’ve tried following the custom graph example in the docs, but it is losing all my generated nodes when entering play mode or re opening the scene.
I am using:
using Pathfinding.Serialization.JsonFx;
using Pathfinding.Serialization;
and my class looks like this
[JsonOptIn]
public class MOBDGraph : NavGraph
I’ve also tried generating a cache, saving to file, both of those load empty graphs- even in editor after loading from the cache of bytes file.
Any ideas? I’m in Unity 4.7 on A Star version 3.6.0.0
EDIT
Also the Polar graph example doesn’t seem to serialize either, same issue, node count zero at runtime or after reloading scene.