I am creating my intial grid graph just fine. I am trying to copy the current graph to a second graph. I am finding that my second graph is not a clone of the initial graph with respect to walkable state. What might I be doing wrong?
I create the first graph and confirmed it is correct. So now I am trying to copy it to a second graph to maintain its original state. I saw another post where this was a recommendation on how to copy a graph to a second at runtime.
// Copy the main graph to a second graph that will stay unmodified.
var data = AstarPath.active.data.SerializeGraphs();
// This line cast does not behave the same way as using the linecast on the original graph.
GridGraph secondGraph = AstarPath.active.graphs as GridGraph;
Thanks for any assistance.