# GetNavMeshAreaNames()

> Get all the navmesh area names.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.6/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

> **Warning:**
>
> **Deprecated.** GetNavMeshAreaNames has been deprecated. Use NavMesh.GetAreaNames instead.
>
> **Upgrade to** [NavMesh.GetAreaNames](/engine/6000.6/script-reference/unityengine/ai/navmesh/getareanames.md)

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

### Returns

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