Best way to find out which graph nodes have been updated

What is the best way to find out which graph nodes have been updated?

I’m currently using both grid & recast graph but the question is most relevant for grid graph.
I store additional information on the nodes which is also scanned and relatively expensive to calculate, like amount of cover provided in different directions.

When part of a graph is updated, I only want to rescan the nodes modified by the update or their neighbours. Is there a straightfoward way to achieve this, I haven’t found any events publishing this information?


There’s no direct information about this. But if you are doing the graph updates yourself, you can use the same bounding box and call the GridGraph.GetNodesInRegion method.