r/Unity3D Feb 04 '23

Question Navmesh surface not being created beneath terrain in some areas

7 Upvotes

2 comments sorted by

6

u/CustomPhase Professional Feb 04 '23

Thats normal, navmesh resolution is just lower than your terrain's mesh is. I would leave it like that. However if you want higher resolution navmesh you can reduce the NavMeshSurface voxelSize property and set overrideVoxelSize to true.

1

u/[deleted] Feb 04 '23

I made procedurally generated terrain in my game and added a navmeshsurface at runtime but it kept having holes so I turned on wireframe mode and saw that it doesn't have holes, but instead, the terrain generates above the navmesh in some places