Search Unity

Generating NavMesh in Unity with Mapbox? Help Please.

Discussion in 'Navigation' started by obiakoifezue, Nov 18, 2019.

  1. obiakoifezue

    obiakoifezue

    Joined:
    Aug 29, 2019
    Posts:
    2
    I have been interested in looking at the visualization tool known as Mapbox in Unity. I am using this tool for performing research in my doctoral work. I am not an experienced programmer and I am a novice at best. Anyway, as of right now, I am trying to see if there is a way to generate a Navmesh at runtime on the 3D models that are generated using the Mapbox tool in Unity. So far, I have had little success in doing this. I have looked at Unity tutorials where Navmeshes are automatically generated but these are generated on pre-existing environments that have been built in Unity before runtime is executed. In Mapbox, however, the model and imagery is generated at runtime and that is what makes this difficult for me to understand at the moment. I have also looked and tried implementing code developed by zulfajuniadi in the Unity Forums and mihakrajnc in the GitHub Forums. However, there seems to be a lot of errors once I put it in Visual Studio for examination and editing and I can not seem to get rid of for some reason. Here is a link to each of their codes that I was looking at for reference:
    https://gist.github.com/mihakrajnc/db8da69d45286ee0c5eef2488c1945c5 and https://github.com/zulfajuniadi/unity-ecs-navmesh.

    Simply put does anyone know how to generate NavMesh on Mapbox maps/3D models at runtime in Unity?
    Can it be explained to a beginner such as me with little confusion?

    Thank you for the Assistance