文档

Unity Engine


User Manual

Script Reference

Unity Engine


Stop

Stop movement of this agent along its current path.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule

Stop()

Stop movement of this agent along its current path.
警告
Deprecated. Set isStopped to true instead.
public void Stop()

Remarks

See NavMeshAgent.Resume for how to resume movement after stopping.

Stop(bool)

Stop movement of this agent along its current path.
警告
Deprecated. Set isStopped to true instead.
public void Stop(bool stopUpdates)

Parameters

stopUpdates

Remarks

See NavMeshAgent.Resume for how to resume movement after stopping.