# costOverride

> Modify pathfinding cost for the link.

## Definition

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

> **Warning:**
>
> **Deprecated.** costOverride has been deprecated together with the class. Declare the object as NavMeshLink and use costModifier instead.

```csharp
public float costOverride { get; set; }
```

### Remarks

When the costOverride value is non-negative the cost of moving over the OffMeshLink is equivalent to the costOverride value times the Euclidean distance between OffMeshLink end points.
