I’m using a 2d graph, which is being resized at Start() to match the size of a dynamically generated map. However, the Scan() function does not seem to be detecting the colliders that have been placed on the map. If I press the Scan button on the A* GameObject while the scene is running, it works great and picks up the colliders.
Here is the code I’m using:
var gg = AstarPath.active.data.gridGraph;
var width = bounds.left + bounds.right;
var depth = bounds.top + bounds.bottom;
var nodeSize = 1.0f;
gg.SetDimensions(width, depth, nodeSize);
// Recalculate the graph
AstarPath.active.Scan();
Sorry to necro. Just wanted to say that this indeed was what fixed the problem for me. Might be worth adding it into the source? Maybe an overload on scan to force it?