A* Pathfinding Project

Scene recast graph not loaded with scene


#1

Is it supposed to be the case that a recast graph created with the scene is not loaded with the scene?

I thought the point of scanning during editor mode was to avoid the need to scan the graph during runtime.

Editor Scene with only a plane and a recast graph. I scanned the scene.

Scan on awake is false. Press play.

Using pro 4.2.4.

I tried debugging it myself, it’s running through this line but I’m not sure if that includes scan data or not
jsonName = graph1.json
TinyJsonDeserializer.Deserialize(GetString(GetEntry(jsonName)), graphType, graph);


#2

Hi

The graph is normally not saved with the scene, however you can enable this using the cached startup options under the Save & Load tab. See https://www.arongranberg.com/astar/docs/save-load-graphs.php