Skip to content

Api > NavMesh > RemoveNavMeshData()


NavMesh.RemoveNavMeshData(NavMeshDataInstance handle)⚓︎

Removes the specified NavMeshDataInstance from the game, making it unavailable for agents and queries.

Parameters:⚓︎

Name Type Description
handle NavMeshDataInstance The instance of a NavMesh to remove.

Usage⚓︎

---@type NavMeshDataInstance
local handle;


NavMesh:RemoveNavMeshData(handle)

Extra Detail⚓︎

Use the instance returned by AddNavMeshData to remove the corresponding NavMesh data. If the instance is not valid, e.g. has been removed before, the call has no effect.