I have a flat terrain with several buildings, furniture and decoration (all prefabs) on it. When I try to create a navmesh for it, Unity tells me that the “Source mesh has invalid vertex data and will be skipped.” So no navmesh is created. The full error message is:
RuntimeNavMeshBuilder: Source mesh has invalid vertex data and will be skipped.
UnityEngine.AI.NavMeshBuilder:UpdateNavMeshDataAsync (UnityEngine.AI.NavMeshData,UnityEngine.AI.NavMeshBuildSettings,System.Collections.Generic.List`1<UnityEngine.AI.NavMeshBuildSource>,UnityEngine.Bounds)
Unity.AI.Navigation.NavMeshSurface:UpdateNavMesh (UnityEngine.AI.NavMeshData) (at ./Library/PackageCache/com.unity.ai.navigation@1.1.5/Runtime/NavMeshSurface.cs:294)
Unity.AI.Navigation.Editor.NavMeshAssetManager:StartBakingSurfaces (UnityEngine.Object[ ]) (at ./Library/PackageCache/com.unity.ai.navigation@1.1.5/Editor/NavMeshAssetManager.cs:129)
Unity.AI.Navigation.Editor.NavMeshSurfaceEditor:OnInspectorGUI () (at ./Library/PackageCache/com.unity.ai.navigation@1.1.5/Editor/NavMeshSurfaceEditor.cs:302)
UnityEngine.GUIUtility: ProcessEvent (int,intptr,bool&)
I already searched for the problem and tried this to resolve, but without success:
- Clearing Nav Mesh Data and baking again
- Deactivating Static Batching
- In “Use geometry”, switching from “Render Meshes” to “Physics Colliders”
How can I find out which vertex data is invalid so that I could remove it? I have dozens of prefabs in the scene. Aside from this error, the whole scene works flawlessly but without a navmesh I cannot put traffic in it. Has anyone an advice?