Scan the graph at runtime

I am making a game where I am initializing the obstacles at runtime randomly on the scene
for which I have to scan the graph at runtime .
Please tell me how can I achieve "Scanning the graph at runtime " as I have enemies to chase the player
any video link will be greatly appreciated

Hi

AstarPath.active.Scan ();

will scan all graphs at any time.

Disable A* Inspector -> Settings -> Scan On Awake to avoid scanning the graph twice.

Thank you aron I will try it.

Thanks, I was also looking for this :slight_smile: and it works.