---
title: GetDefaultWorld()
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/experimental/ai/navmeshworld/getdefaultworld
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/experimental/ai/navmeshworld/getdefaultworld.md
last_updated: 2026-10-07
generated_at: 2026-11-11T01:55:12.442Z
locale: en-us
---

# GetDefaultWorld()

> Returns a reference to the single NavMeshWorld that can currently exist and be used in Unity.

## Definition

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

> **Warning:**
>
> **Deprecated.** The experimental NavMeshWorld struct has been deprecated. Use NavWorld instead.

```csharp
public static NavMeshWorld GetDefaultWorld()
```

### Returns

| Type                                                                                        | Description |
| ------------------------------------------------------------------------------------------- | ----------- |
| [NavMeshWorld](/engine/7000.0/script-reference/unityengine/experimental/ai/navmeshworld.md) |             |

### Remarks

The returned world comprises of all the NavMeshes and connections that are also used through the [NavMesh](/engine/7000.0/script-reference/unityengine/ai/navmesh.md)-related structures.
