Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

5.6.1 missing method `NavMeshBuilder.ClearAllNavMeshes`

Discussion in 'AI & Navigation Previews' started by Ash-Blue, May 20, 2017.

  1. Ash-Blue

    Ash-Blue

    Joined:
    Aug 18, 2013
    Posts:
    102
    It appears that `NavMeshBuilder.ClearAllNavMeshes` is missing from the current Unity version as of 5.6.1. According to the docs here, it should be callable, but isn't. The method exists on `UnityEditor.AI.NavMeshBuilder.ClearAllNavMeshes();`, but our team needs it at runtime.

    Is there an ETA for patching this functionality? Our team needs the ability to wipe all nav meshes on the fly at runtime (currently using a workaround with tracking NavMeshes, but this would help tremendously).
     
    Last edited: May 21, 2017
  2. Ash-Blue

    Ash-Blue

    Joined:
    Aug 18, 2013
    Posts:
    102
    Actually upon further investigation `UnityEditor.AI.NavMeshBuilder.ClearAllNavMeshes();` seems to not be working at all with the new API.
     
  3. Ash-Blue

    Ash-Blue

    Joined:
    Aug 18, 2013
    Posts:
    102
    Got an update from Unity for anybody running into the same issue. Apparently `NavMeshBuilder.ClearAllNavMeshes` does not exist. It only exists on the editor (so it's a documentation bug).
     
  4. joehot200

    joehot200

    Joined:
    Apr 5, 2016
    Posts:
    9
    Oh come ON, seriously!? This method still 'exists' according to the documentation in 2019!

    How on earth am I supposed to clear baked navmeshes without that useful method?