Navmesh vertice limit

Hello, I’m just getting going with the a* pathfinding project but I can’t seem to find any documentation of the vertice limitations of the NavmeshGraph, My mesh isn’t showing up after the graph scan unless I reduce its vertice count.

Hi

Is the log saying anything? If it goes above the vertex limit I’m pretty sure it should log an error message about it, which also specifies the current vertex limit (it is configurable).

Totally missed that message thanks, and also figure I may as well ask here, what are the necessary steps to provide a new mesh to the navmesh at runtime, or update the existing one? Is that possible?

Hi

You can set a new mesh using

// Get the first navmesh graph in the scene
var graph = AstarPath.active.data.navmeshGraph;
graph.mesh = someMesh;
AstarPath.active.Scan();