Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Remove()

Removes this instance from the game.
Read time 1 minuteLast updated 9 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
Warning
Deprecated. Remove() has been deprecated. Use NavMesh.RemoveLink() instead.
public void Remove()

Remarks

This method is an identical but convenient alternative to NavMesh.RemoveLink. If the instance is not valid, e.g. has already been removed, the call has no effect.
Additional Resources: NavMesh.AddLink, NavMesh.RemoveLink