# GetSettingsByID(int)

> Returns an existing entry of NavMesh build settings.

## Definition

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

```csharp
public static NavMeshBuildSettings GetSettingsByID(int agentTypeID)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The ID to look for.

### Returns

| Type                                                                                           | Description         |
| ---------------------------------------------------------------------------------------------- | ------------------- |
| [NavMeshBuildSettings](/engine/6000.5/script-reference/unityengine/ai/navmeshbuildsettings.md) | The settings found. |

### Remarks

If no previously-created settings match the provided agent type ID, the returned [NavMeshBuildSettings](/engine/6000.5/script-reference/unityengine/ai/navmeshbuildsettings.md) struct will have the agentTypeID set to -1. See also: [NavMeshBuildSettings](/engine/6000.5/script-reference/unityengine/ai/navmeshbuildsettings.md).

**Note:** A default entry will always exist for the agentTypeID being 0.
