# GetAreaNames()

> Get all the NavMesh area names.

## Definition

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

```csharp
public static string[] GetAreaNames()
```

### Returns

| Type                                                               | Description                     |
| ------------------------------------------------------------------ | ------------------------------- |
| [string\[\]](https://learn.microsoft.com/dotnet/api/system.string) | Names of all the NavMesh areas. |
