Can I set it to wait for a Path Calculation to complete before continuing?

Currently I call StartPath with a callback function which is called when the path finishes calculating. I’d like to just leave that out and wait for the path to complete before continuing in the function in which I call StartPath. Is this possible?

Thanks.

Hi

Sure, that is possible.

Path p = ... AstarPath.WaitForPath (p); // Done

See http://arongranberg.com/astar/docs/class_astar_path.php#a36de576afe962e470d4379d8c02c2673

Excellent! Thank you.