Multiple Grids & Dynamic Loading

Hello, I have a large map (2D). I’m using Unitys LoadSceneAsync to load / unload areas of the map.

I’m trying to get some pathfinding going in each area, and also allow for AI to travel between the areas.

For this, I’d need to be able to load / unload multiple graphs dynamically during run time. As well as allow AI to travel between them.

I was wondering if there is a current system in place for these features, and if there is a recommended workflow. Thanks!

Hi

Sure. Take a look at this page: Saving and Loading Graphs - A* Pathfinding Project
Even if you have a large map, I’d still recommend using a single graph if possible, as this is simpler and more robust.

You can alternatively use this component ProceduralGridMover - A* Pathfinding Project