Search Unity

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

Discussion in 'Navigation' started by mikelowefedex, Oct 28, 2020.

  1. mikelowefedex

    mikelowefedex

    Joined:
    Sep 29, 2020
    Posts:
    139
    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?...
     

    Attached Files:

    • nav2.jpg
      nav2.jpg
      File size:
      83.1 KB
      Views:
      308
    Last edited: Oct 29, 2020
  2. mikelowefedex

    mikelowefedex

    Joined:
    Sep 29, 2020
    Posts:
    139
    I fixed the problem.
     
  3. oldking80

    oldking80

    Joined:
    Jan 17, 2015
    Posts:
    1
    Hi, how do you fixed? I get same problem