# BuildNavMeshData(NavMeshBuildSettings, List<NavMeshBuildSource>, Bounds, Vector3, Quaternion)

> Builds a NavMesh data object from the provided input sources.

## Definition

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

```csharp
public static NavMeshData BuildNavMeshData(NavMeshBuildSettings buildSettings, List<NavMeshBuildSource> sources, Bounds localBounds, Vector3 position, Quaternion rotation)
```

### Parameters

**** (\[NavMeshBuildSettings]\(/engine/6000.6/script-reference/unityengine/ai/navmeshbuildsettings)): Settings for the bake process, see [NavMeshBuildSettings](/engine/6000.6/script-reference/unityengine/ai/navmeshbuildsettings.md).**** (\[List\<NavMeshBuildSource>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): List of input geometry used for baking, they describe the surfaces to walk on or obstacles to avoid.**** (\[Bounds]\(/engine/6000.6/script-reference/unityengine/bounds)): Bounding box relative to position and rotation which describes the volume where the NavMesh should be built. Empty bounds is treated as no bounds, i.e. the NavMesh will cover all the inputs.**** (\[Vector3]\(/engine/6000.6/script-reference/unityengine/vector3)): Center of the NavMeshData. This specifies the origin for the NavMesh tiles.**** (\[Quaternion]\(/engine/6000.6/script-reference/unityengine/quaternion)): Orientation of the NavMeshData, you can use this to generate NavMesh with an arbitrary up-vector – e.g. for walkable vertical surfaces.

### Returns

| Type                                                                         | Description                                                                             |
| ---------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| [NavMeshData](/engine/6000.6/script-reference/unityengine/ai/navmeshdata.md) | The newly built NavMeshData, or null if the NavMeshData was empty or an error occurred. |

### Remarks

Note: that BuildNavMeshData has same effect as creating a new empty [NavMeshData](/engine/6000.6/script-reference/unityengine/ai/navmeshdata.md) and calling UpdateNavMeshData.

Additional Resources: [\_tileSize](/engine/6000.6/script-reference/unityengine/ai/navmeshbuildsettings/tilesize.md)
