# Sandbox.NavMeshAgent.GetPath

```csharp
NavMeshPath GetPath()
```

Returns the agent's current path as a NavMeshPath. This is not free, so avoid calling it every frame.

### Returns

`NavMeshPath`: A NavMeshPath containing the agent's current path information.

Declared in [Sandbox.NavMeshAgent](/api/Sandbox.NavMeshAgent).
Assembly: `Sandbox.Engine`.
