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. The 2022.2 beta is now available for testing. To find out what's new, have a look at our 2022.2 feature highlights.
    Dismiss Notice
  3. We are updating our Terms of Service for all Unity subscription plans, effective October 13, 2022, to create a more streamlined, user-friendly set of terms. Please review them here: unity.com/legal/terms-of-service.
    Dismiss Notice
  4. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice
Dismiss Notice
Submit bug reports tagged with #Beta2022Win_Unity when you encounter unknown issues while testing the 2022.2 betas for a chance to win a year of Unity Pro. For more information, have a look at our Beta Sweepstakes Announcement.

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