RemoveNavMeshData(NavMeshDataInstance)
Removes the specified NavMeshDataInstance from the game, making it unavailable for agents and queries.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEngine.AI
- Assembly: UnityEngine.AIModule
public static void RemoveNavMeshData(NavMeshDataInstance handle)
Parameters
The instance of a NavMesh to remove.
Remarks
Use the instance returned by NavMesh.AddNavMeshData to remove the corresponding NavMesh data. If the instance is not valid, e.g. has been removed before, the call has no effect.
Additional Resources: NavMeshDataInstance.Remove, NavMesh.RemoveAllNavMeshData