- Home /
How to edit navmesh at a runtime?
Is it possible to build/edit navmesh at a runtime?
I have a terrain built from cubes and it's possible to change its geometry at a runtime, of course if the geometry is changed then the navmesh must be updated.
The NavMeshBuilder is editor class so I can't use it, unfortunately I couldn't find any API that could help me solve the problem.
Comment
You can't. Unity's Navmesh needs to be pre-baked, much like occlusion culling and lightmaps.
Answer by Dreamora · Dec 26, 2011 at 04:58 PM
You can't edit the navmesh at runtime. Its editor time only. So if you use dynamic geometry the unity inbuilt navmesh capability is not usable to you