Had the same issue.
public byte[] SerializeGraph(NavGraph[] graph)
{
return SerializeGraph(graph, Pathfinding.Serialization.SerializeSettings.Settings);
}
public byte[] SerializeGraph(NavGraph[] graph, Pathfinding.Serialization.SerializeSettings settings)
{
uint checksum;
return SerializeGraph(graph, settings, out checksum);
}
public byte[] SerializeGraph (NavGraph[] graph, Pathfinding.Serialization.SerializeSettings settings, out uint checksum)
{
var graphLock = AssertSafe();
var sr = new Pathfinding.Serialization.AstarSerializer(this, settings);
sr.OpenSerialize();
sr.SerializeGraphs(graph);
sr.SerializeExtraInfo();
byte[] bytes = sr.CloseSerialize();
checksum = sr.GetChecksum();
#if ASTARDEBUG
Debug.Log("Got a whole bunch of data, "+bytes.Length+" bytes");
#endif
graphLock.Release();
return bytes;
}
I adjusted the SerializeGraphs and made it work but you have to specify in the settings that the nodes should be saved. Did you do something like this or do you have a better solution? Hope you can share it.