Check if GraphUpdateScene creates a new area

Is there a way to determine when a new area is created after a GraphUpdateScene is applied? I.e. the GUS is set to modifyWalkability = true and setWalkability = false, and when applied it separates one GridGraph area into two (i.e. a door closing). I’m trying to figure out a way to check if a new area was created during the update. The lastUniqueAreaIndex variable in AstarPath looked promising, but I’m having difficulties getting around the fact that the GUS object is asynchronous.

So before I spend time adding callback support to GUS and the UpdateGraphs function, I just wanted to know if there was an easier way to accomplish this.

Thanks!

Hi

There is no direct way to do this, but you might be interested in this API which does sort of that: http://arongranberg.com/astar/docs_dev/class_pathfinding_1_1_graph_update_utilities.php#af1d9912f395e3a1b5ef4f21d1f19da74

May I ask why you need this functionality?