Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  3. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    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