# Stop

> Stop movement of this agent along its current path.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.AI](/engine/6000.6/script-reference/unityengine/ai.md)
* **Assembly:** UnityEngine.AIModule

## Stop()

Stop movement of this agent along its current path.

> **Warning:**
>
> **Deprecated.** Set isStopped to true instead.

```csharp
public void Stop()
```

### Remarks

See [NavMeshAgent.Resume](/engine/6000.6/script-reference/unityengine/ai/navmeshagent/resume.md) 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.

```csharp
public void Stop(bool stopUpdates)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;

### Remarks

See [NavMeshAgent.Resume](/engine/6000.6/script-reference/unityengine/ai/navmeshagent/resume.md) for how to resume movement after stopping.
