Function AstarData.RemoveGraph

RemoveGraph (NavGraph graph)

Removes the specified graph from the graphs array and Destroys it in a safe manner.

Public
bool RemoveGraph (

NavGraph

graph

)

Removes the specified graph from the graphs array and Destroys it in a safe manner.

To avoid changing graph indices for the other graphs, the graph is simply nulled in the array instead of actually removing it from the array. The empty position will be reused if a new graph is added.

Return

True if the graph was sucessfully removed (i.e it did exist in the graphs array). False otherwise.