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.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

NavMesh CalculateTriangulation tile information??

Discussion in 'Navigation' started by ChristmasEve, Feb 2, 2016.

  1. ChristmasEve


    Apr 21, 2015
    Hey all!
    I'm trying to use 3rd party software (Recast/Detour) to conduct pathfinding in a C++ program outside of Unity but the vertex/triangle/layer data is coming from Unity because that's what my game client uses.

    NavMesh.CalculateTriangulation() returns all of these things but it does not return tile information. Does anyone know how I can get that info? If I can't do it with a Unity Engine call, does anyone have any code that can recreate tile information from the data returned by CalculateTriangulation? I'm sure NavMesh.asset must contain it but I have no idea how to parse that file.

    Thanks in advance!