Hello. I have finally upgraded from 5.1.4 from 4.2.15. Now whenever I go to another scene, I’m calling AstarPath.active.Scan() as I have just re-added objects to the scene, and I’m getting “The Grid Graph is not scanned, cannot update graph” warning:
The Grid Graph is not scanned, cannot update graph
UnityEngine.Debug:LogWarning (object)
Pathfinding.GridGraph:Pathfinding.IUpdatableGraph.ScheduleGraphUpdates (System.Collections.Generic.List`1<Pathfinding.GraphUpdateObject>) (at ./Packages/com.arongranberg.astar/Graphs/GridGraph.cs:2682)
Pathfinding.GraphUpdateProcessor:QueueGraphUpdatesInternal (Pathfinding.IWorkItemContext) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/GraphUpdateProcessor.cs:149)
AstarPath/<>c__DisplayClass97_0:<QueueGraphUpdates>b__0 (Pathfinding.IWorkItemContext) (at ./Packages/com.arongranberg.astar/Core/AstarPath.cs:995)
Pathfinding.WorkItemProcessor:ProcessWorkItems (bool,bool) (at ./Packages/com.arongranberg.astar/Core/Misc/WorkItemProcessor.cs:323)
Pathfinding.WorkItemProcessor:ProcessWorkItemsForScan (bool) (at ./Packages/com.arongranberg.astar/Core/Misc/WorkItemProcessor.cs:399)
AstarPath/<ScanInternal>d__127:MoveNext () (at ./Packages/com.arongranberg.astar/Core/AstarPath.cs:1670)
AstarPath:Scan (Pathfinding.NavGraph[]) (at ./Packages/com.arongranberg.astar/Core/AstarPath.cs:1573)
ItemPlanter:PlantObjects () (at Assets/Scripts/Persistence/ItemPlanter.cs:54)
ItemPlanter:Start () (at Assets/Scripts/Persistence/ItemPlanter.cs:25)
What could be the reason of this?
Thanks!