Scanning in One Frame?

Is it possible to completely pause every other pathfinding related task and just scan all graphs in one frame? I just want to make one lengthy, initial scan when the scene is first loaded. I’ve been trying to put FlushGraphUpdates() before and after my Astarpath.active.scan() but I don’t notice any difference, like so:

    AstarPath.active.Scan();
    AstarPath.active.FlushGraphUpdates();

Anyone?

Hi

AstarPath.active.Scan() does exactly that. It pauses all pathfinding and blocks until all graphs have been scanned.

1 Like