Search Unity

Storing and Updating NavMesh at runtime

Discussion in 'Navigation' started by Psyworks, Jun 26, 2017.

  1. Psyworks

    Psyworks

    Joined:
    Jul 11, 2016
    Posts:
    5
    [edit] see below:
     
    Last edited: Jun 26, 2017
  2. Psyworks

    Psyworks

    Joined:
    Jul 11, 2016
    Posts:
    5
    Hi there,

    After reading everything I can find and looking through the example project, I've clarified some things but am lost on others regarding the new NavMesh tools.

    For context, my project is tile-based and needs the NavMesh to be baked at runtime, and occasionally updated when immobile objects are created or destroyed.

    I have been able to bake the navmesh at runtime using NavMeshBuilder.BuildNavMesh(); and tagging the objects using 'navigation static'. What I have no idea how to do is to store the NavMesh so I can update or remove it. I don't quite understand how unity handles NavMesh data and the documentation just doesn't have enough examples for me to understand how everything is stored.

    Any help on this would be greatly appreciated!

    Thanks,

    -Chris
     
    Garrettec likes this.
  3. Jakob_Unity

    Jakob_Unity

    Joined:
    Dec 25, 2011
    Posts:
    269
    davidrochin likes this.