Search Unity

2d navmesh support?

Discussion in 'Navigation' started by enzoravo, Apr 3, 2017.

  1. enzoravo

    enzoravo

    Joined:
    Jun 25, 2013
    Posts:
    284
    hi, i saw a thread two months a go where someone told that the new unity3d 5.6 will came out with navmesh support for 2d games (side scrollers).

    now that the unity3d 5.6 was release, i just installed it, but i don't see any change.

    there is a guide, doc or tuto that shows how to use navmesh agent in 2d games ?

    thanks in advance for all the help.
     
  2. Jakob_Unity

    Jakob_Unity

    Joined:
    Dec 25, 2011
    Posts:
    269
    We're working support for extracting 2d colliders as input to building navmesh.
    For now - If you have a mesh-representation of the 2d colliders it's possible to pass these meshes to the low level navmesh build API.
     
  3. enzoravo

    enzoravo

    Joined:
    Jun 25, 2013
    Posts:
    284
    thank you for the answer, i prefer to wait for the 2d support, in the mean time i will be working on others areas of the game.

    thanks for the information.
     
  4. Andreu-Accensi

    Andreu-Accensi

    Joined:
    Feb 5, 2015
    Posts:
    18
    I was looking for the same. Is this low level API able to handle mesh representation on the XY plane? Top down 2d games need this so badly. Can you also point us where there are manuals about the low level API?
     
  5. Lechuza

    Lechuza

    Joined:
    Oct 3, 2014
    Posts:
    23
    I am also interested in this, where should I start looking into the low level API to extend/implement something like this?
     
  6. Jakob_Unity

    Jakob_Unity

    Joined:
    Dec 25, 2011
    Posts:
    269
    Yes - There's an example of this in the github repos, the NavMeshSurface component source. There's no manual for the low level API - but we do have the scripting API reference – e.g. : https://docs.unity3d.com/ScriptReference/AI.NavMeshBuilder.BuildNavMeshData.html
     
    bowserscastle and AntonioModer like this.
  7. darthbator

    darthbator

    Joined:
    Jan 21, 2012
    Posts:
    169
    Has anyone from the community looked into this any further. I spent a little time checking out the NavMeshSurfaceComponent but I gotta admit this is definitely above my head. Is there a chance this might be landing in Unity 2017? I'm trying to decide if it's worth just waiting on beta support or if I should just integrate A* and possibly redo my pathfinding later.
     
  8. Soumya

    Soumya

    Joined:
    Jan 14, 2013
    Posts:
    8
    Hi, any update on this?
     
  9. Vinnie711

    Vinnie711

    Joined:
    Sep 6, 2017
    Posts:
    5
    Hi,I use API https://docs.unity3d.com/ScriptReference/AI.NavMeshBuilder.BuildNavMeshData.html and there is error
    PPtr cast failed when dereferencing! Casting from EdgeCollider2D to Mesh!
    UnityEngine.AI.NavMeshBuilder:UpdateNavMeshData(NavMeshData, NavMeshBuildSettings, List`1, Bounds)
    in my 2D game.
    I follow your github project https://github.com/Unity-Technologies/NavMeshComponents, this is only work on 3D game.....
    Is there any manual for 2D NavMesh?
     
  10. Jap

    Jap

    Joined:
    Jul 12, 2012
    Posts:
    2
    So a year has passed, are you guys still working on this feature?
     
  11. vhman

    vhman

    Joined:
    Aug 13, 2018
    Posts:
    354
  12. Green11001

    Green11001

    Joined:
    Apr 14, 2018
    Posts:
    397
    Is it here yet
     
  13. Aykutkaraca

    Aykutkaraca

    Joined:
    Jan 4, 2018
    Posts:
    33
    Waiting for this too. Has it been introduced in 2018 meet-up?
     
    vhman likes this.
  14. daniel3daniel

    daniel3daniel

    Joined:
    Apr 16, 2019
    Posts:
    1
    Hi! Are there any plans for official 2D Navmesh support in 2019?
     
    quans1, wlwl2 and vhman like this.