Callback for Scan()

Hello, how do I call a function when Scan() is completed?

Hi

Scan is a synchronous function, so once the call to Scan is done, the graphs have been fully scanned.

That’s strange because when I have this code in my script

// Scan
aipathscript.Scan();

// Start path
seekerscript.StartPath();

It will fail to find a path because the scan isn’t complete. I need to run the code twice for it to find a path.

What type is aipathscript? Because the AIPath class definitely doesn’t have a Scan method.