Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    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
     
unityunity