# autoRepath

> Should the agent attempt to acquire a new path if the existing path becomes invalid?

## Definition

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

```csharp
public bool autoRepath { get; set; }
```

### Remarks

A new path calculation is also attempted aquired if the agent reaches the end of a partial and stale path.
