NavMeshAgent.Stop Manual     Reference     Scripting  
Scripting > Runtime Classes > NavMeshAgent
NavMeshAgent.Stop

function Stop (stopUpdates : boolean = false) : void

Parameters

NameDescription
stopUpdates If true, the GameObject is stopped immediately and not affected by the avoidance system. If false, the NavMeshAgent is controlling the deceleration.

Description

Stop movement of the agent along the current path.