- A* version: 5.2.5
- Unity version: 2022.3.39f1
AstarPath.active.data.DeserializeGraphsAdditive(mapData.bytes);
GridGraph loadedGraph = (GridGraph)AstarPath.active.data.graphs[AstarPath.active.data.graphs.Length - 1];
loadedGraph.RelocateNodes(loadedGraph.center + new Vector3(scene.SceneOffset.x, scene.SceneOffset.y), Quaternion.Euler(loadedGraph.rotation), loadedGraph.nodeSize, loadedGraph.aspectRatio);
Before the update, deserializing and relocating the nodes of the graph worked perfectly well. After updating to 5.2.5, the RelocateNodes() method fails with an error log of
“Trying to update graphs when it is not safe to do so. Graph updates must be done inside a work item or when a graph is being scanned. See AstarPath.AddWorkItem”
Should I just downgrade my version to the one before (5.1 something which I forgot already the version number)?