Example Analysis of unity3 Astar ArrayTypeMismatch
This article will explain the example analysis of unity3 Astar ArrayTypeMismatch for you in detail. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
The astar pathfinding class in unity will not change the ArrayTypeMismatchException type conversion Error.
Pathfinding.Serialization.AstarSerializer.DeserializeEditorSettings
In JsonSerializer.cs line 787 it have "reader.PopulateObject (ref graphEditors [I]);"
Replace the above sentence with the following sentences:
GraphEditorBase graphEditor = graphEditors [I]
Reader.PopulateObject (ref graphEditor)
GraphEditors [I] = graphEditor
Done.
This is the end of this article on "sample Analysis of unity3 Astar ArrayTypeMismatch". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.