# GetSettingsByIndex(int)

> Returns an existing entry of NavMesh build settings by its ordered index.

## Definition

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

```csharp
public static NavMeshBuildSettings GetSettingsByIndex(int index)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index to retrieve from.

### Returns

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

### Remarks

If the index is outside the valid range (0, GetSettingsCount-1), the returned NavMeshBuildSettings struct will have the agentTypeID set to -1.

Additional Resources: [NavMeshBuildSettings](/engine/6000.7/script-reference/unityengine/ai/navmeshbuildsettings.md), [NavMesh.GetSettingsCount](/engine/6000.7/script-reference/unityengine/ai/navmesh/getsettingscount.md)
