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.

Navmesh doesn't show up even though it's working

Discussion in 'Navigation' started by Yanuary, May 6, 2019.

  1. Yanuary

    Yanuary

    Joined:
    Apr 23, 2019
    Posts:
    6
    My nav mesh is invisible, although it's working as intented. For example i can add Nav Mesh Obstacle component to my "wall" and agent takes wider route after baking. So seems like everything works fine, but for some reason I can't see these blue multiple ares created by navmesh.

    I've tried several solutions I've found in Google, but unfortunately without success.
    I'm attaching a file where you can see that the scene looks like there is no navmesh at all, although it is there...
    How can I resolve this problem?
     

    Attached Files:

    codyjolin likes this.
  2. Yandalf

    Yandalf

    Joined:
    Feb 11, 2014
    Posts:
    488
    The NavMesh is only visible in the editor when you're having the Navigation tab open and active.
     
    sj631 likes this.
  3. Yanuary

    Yanuary

    Joined:
    Apr 23, 2019
    Posts:
    6
    How about that?
     

    Attached Files:

    sonaht_unity and Vaultboy_444 like this.
  4. Yandalf

    Yandalf

    Joined:
    Feb 11, 2014
    Posts:
    488
    Huh, that's strange. Is that happening in any scene in this project, or only in that specific scene? Just quickly create a new scene and bake a Navmesh in it.
     
  5. ezhao1

    ezhao1

    Joined:
    Apr 21, 2019
    Posts:
    3
    Is the ground set to static?
     
  6. Yanuary

    Yanuary

    Joined:
    Apr 23, 2019
    Posts:
    6
    I've just tried it and Navmesh is still invisible.

    It wasn't, and after i checked it, navmesh appeared for like 0,2 sec and disappeared again.

    This problem isn't so important for me, but seems weird that it just won't show itself lol.
     
  7. Yanuary

    Yanuary

    Joined:
    Apr 23, 2019
    Posts:
    6
    Update
    Turning Gizmos on finally resolved this problem for me, thanks for your replies.
     
  8. jkoufiles

    jkoufiles

    Joined:
    Sep 20, 2017
    Posts:
    1
    newbie and none of my attempts are showing the blue mesh. I changed static to navigation, have navmesh display to show on checked, baked it, navigation tab is clicked. nothing.
     
  9. AntiSilence

    AntiSilence

    Joined:
    Aug 17, 2016
    Posts:
    5
    I've just gone to re-bake my navmesh and have noticed that I can't see it either, in Unity 2019.2.
     
    alshamsix9, vakuzar and thisaraunity like this.
  10. RaphyX

    RaphyX

    Joined:
    May 18, 2019
    Posts:
    1
    I had the same problem.
    As Yanurary said, turning on gizmos helped.
    What I did was IJust click the gizmos button in the editor view (top) and swich to the navigation tab afterwards.
     
  11. AntiSilence

    AntiSilence

    Joined:
    Aug 17, 2016
    Posts:
    5
    Well now I feel silly :confused: lol. Done the same thing - I hadn't realised the Gizmos button was toggled off <facepalm>
     
  12. garaujo

    garaujo

    Joined:
    Aug 31, 2013
    Posts:
    1
    It was my first time using navmesh, and its was "not working", i removed it, downloaded again, 3 hrs later i figured out that the navmesh file was created, GG. But i coudnt see the "blue" shape yet... gizmos was deativated. Thank you!
     
    codyjolin likes this.
  13. craig4android

    craig4android

    Joined:
    May 8, 2019
    Posts:
    124
  14. Aurie88

    Aurie88

    Joined:
    Aug 15, 2019
    Posts:
    2
    if it's not working you can reset legacy bake settings by left clicking nav tab, my terrain wasn't baking so i reset and i worked
     
  15. Alfie_1516

    Alfie_1516

    Joined:
    Jan 1, 2020
    Posts:
    2
    Yep just turn your gizmos on and it should work ..........it worked for me
     
  16. Hybrid1969

    Hybrid1969

    Joined:
    Apr 19, 2013
    Posts:
    31
    FYI - I discovered today that navmesh shows in editor -> scene view fine but not in when in prefab view
     
    UrosProsenikO7 likes this.
  17. sebastiangibb7

    sebastiangibb7

    Joined:
    Mar 20, 2020
    Posts:
    1
  18. Alfie_1516

    Alfie_1516

    Joined:
    Jan 1, 2020
    Posts:
    2
    But please I have another problem when I try to paint textures into a terrain it produces white edges around the painted texture
     
  19. HeyBishop

    HeyBishop

    Joined:
    Jun 22, 2017
    Posts:
    222
    Oh my gosh!
    I had the same problem too. <doublefacepalm>

    THANK YOU.
     
    AntiSilence likes this.
  20. scottlambfgol

    scottlambfgol

    Joined:
    Feb 25, 2019
    Posts:
    1
    Yeaaaaap, it was toggling GIZMOS for me, too. Don't I feel stupid. Thanks, all ;)
     
  21. zxcvbn21

    zxcvbn21

    Joined:
    Oct 28, 2016
    Posts:
    3
    Yes it help you were right
     
  22. nihaan

    nihaan

    Joined:
    Nov 11, 2018
    Posts:
    7
    SiIMPLE SOLUTION :
    Turn on GIIZMOS
     
  23. dazaizone

    dazaizone

    Joined:
    Mar 6, 2020
    Posts:
    6
    sad thing for me, same problem , but had my gizmos on , still I can't view the blue stuffs :(
     
    mikeywill21 likes this.
  24. heartingNinja

    heartingNinja

    Joined:
    Mar 26, 2015
    Posts:
    9
    Haha had same problem
     
    yskhan61 likes this.
  25. BlackDA

    BlackDA

    Joined:
    Oct 26, 2021
    Posts:
    1
    Thank you!!!!!!!!! Today I had the same problem hahaha
     
  26. neinxx

    neinxx

    Joined:
    Apr 23, 2018
    Posts:
    1
    You are a Master
     
    yskhan61 likes this.
  27. Bullzeye231

    Bullzeye231

    Joined:
    Aug 21, 2018
    Posts:
    3
    Hey everybody,

    in case someone stumples over this thread:

    There are two possibilities for creating a nav mesh:

    1. The old way : Open Navigation Window -> Select the object tab -> Select the gameobjects in the hierarchy and mark them as static and walkable -> Select the bake tab -> Click bake
    2. The component way (new way) : Attach a NavMeshSurface component to any gameobject and press Bake.

    How do both ways seem to work:

    1. The old way:
    Each gameobject that is marked as navigation static will be considered part of the navmesh. Controlling the areas allows for including / excluding gameobjects from baking.

    2. The new way:
    The NavMeshSurface Component allows to create a Navmesh depending on the settings made in the NavMeshSurface component. One can either define to respect
    • All Gameobjects
    • The Child Gameobjects of the Gameobject where the NavMeshSurface is attached to
    • GameObjects that are within a defined Volume
    Furthermore one can restrict the selection of gameobjects by grouping them to a custom Layer

    So far so good but what to do if the navmesh doesn't appear?

    Here are things I found in other threads:
    • Check the gizmos
    • Check if objects are marked static ( Only works for old way )
    • Check the parameters set in the bake tab of the navigation window ( Only works for old way )
    • Check the parameters of the predefined agents in the navigation tab ( These are used with the new way )
    One thing I noticed however that in my version 2020.3.15f there also exists another issue which I haven't found as answer in any other thread.

    It seems that the navmesh only gets updated in the scene mode. It does not work in prefab mode. One can see the navmesh by
    • opening the navigation tab ( Only works for old way )
    • Selecting the Gameobject containing the NavMeshSurface component ( Only works for the new way )
    in the scene as well as in prefab mode however hitting bake again, doesn't update the visual representation of the navmesh until the scene mode is next visited.

    I hope this helps anyone stumpling over this thread.

    Greetings
     
    Schneider21 and farazk86 like this.
  28. arskhanFRS

    arskhanFRS

    Joined:
    May 16, 2022
    Posts:
    6
    1. Set your environment game objects to static.
    2. Unpack your environment prefab. If possible
    3. Enable Gizmos in the scene view.
    4. Make sure your navigation window is currently selected.
     
  29. VS1Toronto

    VS1Toronto

    Joined:
    May 7, 2017
    Posts:
    1
    Heah guys just adding to this maybe a bit late but I too suddenly had disappearing nav meshes however the fix was simple but maddening - I HAD INADVERTANTLY LEFT THE SMA:LL PADLOCK ON IN THE TOP RIGHT HAND CORNER OF UNITY WHEN LOCKING A PREFAB TO ADD A SPRITTE FOR INSTANTIATION - just turned padlock off to stop locking it and all my Nav Mesh Components came roaring back into view, phew thought id lost them all for a moment, hope this helps anyone with similar scary moment mid game build!