Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Unity 2022.2 is now available as the latest Tech release.
    Dismiss Notice
  3. We are making some changes to the DOTS forums.
    Dismiss Notice
  4. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

NavMeshSurface script gives different NavMesh than Navigation -> Bake

Discussion in 'AI & Navigation Previews' started by Gregoryfikator, Dec 17, 2018.

  1. Gregoryfikator

    Gregoryfikator

    Joined:
    Oct 25, 2018
    Posts:
    2
    Hello,

    I don't know why but script is not generating nav mesh as I want. This is what I'm getting from script:




    And this is generated from editor:



    Do you have an idea why script works like that and how to fix it? I really appreciate any help.
     
  2. Gregoryfikator

    Gregoryfikator

    Joined:
    Oct 25, 2018
    Posts:
    2
    I've found solution. If you have such a problem make sure that:
    - NavMeshSurface script is attached to empty GameObject which is a parent of area you want to bake
    - Area you want to bake is facing up direction