Function AstarData.DuplicateGraph

DuplicateGraph (NavGraph graph)

Duplicates the given graph and adds the duplicate to the graphs array.

Public
NavGraph DuplicateGraph (

NavGraph

graph

)

Duplicates the given graph and adds the duplicate to the graphs array.

Note

Only graph settings are duplicated, not the nodes in the graph. You may want to scan the graph after duplicating it.

Return

The duplicated graph.