There is a RemoveGraph function to remove a single graph,
why isn’t there one to cleanly remove all graphs ?

There is a private function called ClearGraphs

1 Like

If you were to make ClearGraphs public, make sure you update the NavmeshUpdates.cs file.
on line 170 the code does not check for the graphs == null

Fixed. Will be included in the next version.

1 Like

I am using 4.2.17 (Current) - released on November 06, 2021, but ClearGraphs is still not public?


Hmm, it seems I have made it public in the beta version a long time ago, but I haven’t backported the change to the non-beta version it seems. You can use the beta version A* Pathfinding Project to get access to it for now.