Search Unity

  1. The 2021.2 beta is now available. To find out what's new, have a look at our 2021.2 beta blog post.
    Dismiss Notice
  2. All Pro and Enterprise subscribers: find helpful & inspiring creative, tech, and business know-how in the new Unity Success Hub. Sign in to stay up to date.
    Dismiss Notice
  3. 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:
    99
    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:
    99
    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:
    99
    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?
     
unityunity