# NavMeshData

> Constructs a new object for representing a NavMesh for the default agent type.

## Definition

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

## NavMeshData()

Constructs a new object for representing a NavMesh for the default agent type.

```csharp
public NavMeshData()
```

### Remarks

At construction this NavMesh is empty, i.e. there are no polygons. You can use this class to create, build and add a NavMesh at runtime.

## NavMeshData(int)

Constructs a new object representing a NavMesh for the specified agent type.

```csharp
public NavMeshData(int agentTypeID)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The agent type ID to create a NavMesh for.
