Recast Graph Instancing

I am working on a simulation that takes place in a city. I currently am generating a recast graph for the entire city scene, which results in a graph of around 1 million points.

However, I only actually have a few unique building prefabs in the city that are just copied around. A recast graph for a building is only like 10k points, and the city foundation is another 50k points. Is it possible use a prefab which contains a recast graph and merge it with a recast graph in my main unity scene?

Hi

I’m afraid that’s not possible.
If your buildings are just obstacles (i.e. you don’t allow agents to walk on top of them or something) you could construct simplified meshes and use the NavmeshCut component to cut a hole in the navmesh, which is usually faster.

See https://arongranberg.com/astar/docs/navmeshcut.html