Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

NavMeshDataInstance.Remove

public void Remove();

Description

Removes this instance from the NavMesh system.

An identical but convenient alternative to calling NavMesh.RemoveNavMeshData. If the instance is not valid, e.g. has been removed before, the call has no effect.