文档

Unity Engine

Unity Engine

Remove()

Removes this instance from the game.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
警告
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