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;
搞定
本文出自 “margo” 博客,请务必保留此出处http://margo.blog.51cto.com/220225/1431591
unity3 Astar ArrayTypeMismatchException,布布扣,bubuko.com
unity3 Astar ArrayTypeMismatchException
原文地址:http://margo.blog.51cto.com/220225/1431591