NavMeshSurface.BuildNavMesh() doesn't calculate all doorways.

Hello,
I have a room setup that uses NavMeshSurface.BuildNavMesh() in a script. My doors are set up to be in a layer where the NavMeshSurface ignores the box colliders of the doors. I noticed that only sometimes, the doorways get calculated into the navmeshes, while other times, they don’t. Here is what the results look like. Does anyone have any idea why sometimes, the doorways get calculated, while other times, they don’t?..

I fixed the problem.

Hi, how do you fixed? I get same problem