Is there a way to know if graph was updated/changed

Ok so instead of repathing with timer I would like to repath only when the graph was somehow changed.

Is there an event or some kind of way to know if the graph was updated since the last time I obtained path ?

Hi

Yes. You can use AstarPath.OnGraphsUpdated.

See https://arongranberg.com/astar/docs/class_astar_path.php#a8c6d31ec81922e83c11aaf8a96f33cb2

Can you confirm that NavmeshCut (and similar) components are not rising OnGraphsUpdated ?

Hi

Yes. That is correct. It will only be called for updated issued using the AstarPath.UpdateGraphs methods.
This is mostly for historical reasons. I should probably add this to the documentation though, or change the behavior so that it is called for all types of updates.

If you want to catch NavmeshCut updates as well you can create a component which inherits from the GraphModifier class and then override the OnGraphsPostUpdate method. Note that this may be called multiple times when updating recast graphs as it is called once for each updated tile.