Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

NavMeshAgent.Stop

Switch to Manual
public function Stop(stopUpdates: bool = false): void;

Parameters

stopUpdates If 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.