unity中的astar寻路类会时不时报这个ArrayTypeMismatchException 类型转换Error,

Pathfinding.Serialization.AstarSerializer.DeserializeEditorSettings

In JsonSerializer.cs line 787 it have "reader.PopulateObject (ref graphEditors[i]);"

用下面的几句替换上面的一句:
GraphEditorBase graphEditor = graphEditors[i];
reader.PopulateObject (ref graphEditor);
graphEditors[i] = graphEditor;


搞定