Get the App
SLTechnology News&Howtos  ›  Development  › 

Example Analysis of unity3 Astar ArrayTypeMismatch

Shulou Source: shulou.com Published: 2022-06-02 02:17:01 11月16日 Update

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.

Tags: Articles examples analysis more faceted good practical content articles knowledge types references help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Shulou Technology Microsoft Shulou Information Apple