Recast Graphs snap to 0,0,0 when I run the game

Hi,

I want to have a dozen of recast graphs spread across the terrain and when I move their bounds it works in edit time but by pressing run they all snap back to 0,0,0.

Please let me know how to fix that. I still dont export the graphs

Hi

If you move it in edit mode, it’s possible they are not serialized after you make changes.

Try

AstarPath.active.data.SetData(AstarPath.active.data.SerializeGraphs());
EditorUtility.SetDirty(AstarPath.active);

after you have made your edit-mode changes.