Hi, I’m using 4.2.15 (pro version) with a grid graph setup. So far I’ve used AstarPath.active.Scan() with good results. To achieve perfect results, I’ve then started to scan my entire map tile by tile and set each node manually (node.Walkable = true/false). Now I’m thinking I don’t really need to use AstarPath.active.Scan() anymore, as I’m scanning the whole graph for a second time anyway, but if I remove that line, I get:
NullReferenceException: Object reference not set to an instance of an object Pathfinding.GridGraph.GetNode (System.Int32 x, System.Int32 z)
It seems AstarPath.active.Scan() is doing more than just scan the area. How could I get this to work without using AstarPath.active.Scan() and thereby avoid scanning twice?