RemoveAllNavMeshData()
Removes all NavMesh surfaces and links from the game.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEngine.AI
- Assembly: UnityEngine.AIModule
public static void RemoveAllNavMeshData()
Remarks
Unloads all surfaces and links that have been loaded from the Scene or added with NavMesh.AddNavMeshData or NavMesh.AddLink and frees all the internal resources associated with the NavMesh.
Additional Resources: NavMesh.RemoveNavMeshData, NavMesh.RemoveLink