Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

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