I am using AstarPath.active.UpdateGraphs(bounds); to update a local area of the NavMesh. I used this method in the editor to dynamically place Off Mesh Links, but I’m concerned that using this approach at runtime might be too slow. Are there any better methods for doing this?
Hi
I don’t know the performance of the automatic node link tool. (it’s community provided).
But if it creates GameObjects, you could theoretically make it a bit faster by directly using AstarPath.offMeshLinks.Add: Add - A* Pathfinding Project .
I’m not sure if that’s a bottleneck in the code you linked, though.
I actually need the ability to automatically set the start and end positions for the Off Mesh Link component. I hope the official team will add such a feature. Thank you very much.