- Home /
Question by
slushieboy99 · Aug 20, 2020 at 05:13 PM ·
scripting problemainavmeshnavigationscriptingproblem
Setting NavMesh from NavMeshTriangulation or Mesh
Hi guys, I'm working on a procedural generated game and am having trouble connected NavMeshSurfaces between chunks. My terrain is quite simple and I have all kinds of data for each chunk including vertex and triangle arrays. I can very easily make a new NavMeshTriangulation and set the indices, areas, and vertices, but I can't find any way to actually apply this to the NavMesh. Does anyone know a way to set the NavMesh directly? Thanks!
Comment
Answer by mateuszwallace · Dec 02, 2020 at 12:26 PM
If you have a some - > public NavMeshSurface navsurf; try use a -> navsurf. BuildNavMesh();