# GetAreaCost(int)

> Returns the area cost multiplier for the given area type for this filter.

## Definition

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

```csharp
public float GetAreaCost(int areaIndex)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Index to retrieve the cost for.

### Returns

| Type                                                          | Description                                      |
| ------------------------------------------------------------- | ------------------------------------------------ |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | The cost multiplier for the supplied area index. |

### Remarks

The default value is 1.
