Reverting graph state with GraphUpdateObject.RevertFromBackup

Hi,

I have trouble reverting back GridGraph nodes after a tag modifying, shape based graphUpdate element is destroyed.

The graph nodes are first modified with a GraphUpdateObject with trackChangedNodes set to true on my objects Start() method.
When my objects are destroyed, graph nodes are restored through the use of RevertFromBackup method on the guo, in the OnDestroy() callback.

Calling directly RevertFromBackup seems a bit rude to me as it doesn’t make all checks neither calls all callbacks like when using AstarPath.active.UpdateGraphs(guo). As a result, for example, I cannot see the effect of the revertion in the graph nodes color in the editor.

What is the correct/intended use of RevertFromBackup method ? What is the “right” strategy to revert nodes like they were before the graph update ?

Thanks,

PS: Thanks to Aron for the very usable free edition.

I am curious about this as well.

I have tried using it, but the grid seems to break when I do. The mesh that shows the grid gets messed up. My current solution is to do the inverse operation, but that may be difficult in some cases. I only had to set nodes to unwalkable and vice-versa, for which I can simply re-use the GUO with one parameter changed.

For some reason, I could not find documentation or posts about this specific function.