码迷,mamicode.com
首页 > 其他好文 > 详细

unity3 Astar ArrayTypeMismatchException

时间:2014-06-28 00:34:14      阅读:246      评论:0      收藏:0      [点我收藏+]

标签:unity3d astar

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

标签:unity3d astar

原文地址:http://margo.blog.51cto.com/220225/1431591

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!