Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

Stop(stopUpdates: bool = false): void;
void Stop(bool stopUpdates = false);
def Stop(stopUpdates as bool = false) as void

Parameters

stopUpdatesIf true, the GameObject is stopped immediately and not affected by the avoidance system. If false, the NavMeshAgent controls the deceleration.

Description

Stop movement of this agent along its current path.