Opposite of UpdateGraphs()?

Hello,
I’m pretty new to this and I’m currently writing a set of scripts (actions) for an FSM system called Playmaker. I’m having some problems though. I spawn towers and onStart update the scene graph with:
AstarPath.active.UpdateGraphs(go.collider.bounds);

What do I need to do to revert this once the tower is destroyed? Without recalculating the entire graph? It’s not like I have a GUO which I can quickly revert back to normal, do I?

Best,
kiriri

Hi

The fun thing is that just calling that same code when a tower has been destroyed (make sure it really is called after it has been destroyed) will recalculate the graph in that region and you will get back your original graph.

wow thanks, that’s ingenious ! works flawlessly