GetSettingsByIndex(int)
Returns an existing entry of NavMesh build settings by its ordered index.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.AI
- Assembly: UnityEngine.AIModule
public static NavMeshBuildSettings GetSettingsByIndex(int index)
Parameters
The index to retrieve from.
Returns
Type | Description |
|---|---|
| NavMeshBuildSettings | 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, NavMesh.GetSettingsCount