Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Stop

Stop movement of this agent along its current path.
Read time 1 minuteLast updated 11 days ago

Definition

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

Stop()

Stop movement of this agent along its current path.
Warning
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.
Warning
Deprecated. Set isStopped to true instead.
public void Stop(bool stopUpdates)

Parameters

stopUpdates

Remarks

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