Hello! I almost finished to generate procedurally my maze and, after merging floor and wall meshes into two new meshes, I proceded in applying the NavMeshSurface from script, after put the two new “big meshes” inside a gameObject parent, called Maze. I performed the bake within the Maze object with resultGO.AddComponent<NavMeshSurface> ().BuildNavMesh;
, assigning to it the NavMeshSurface script through Maze.AddComponent<NavMeshSurface> ();
, but the result doesn’t satisfy me, since it doesn’t take in consideration the walls, which should be the NavMeshObstacle.
This is the result I obtained: a plain NavMeshSurface with no trace of my walls. Any suggestions?