文档

Unity Engine

Unity Engine

GetSettingsNameFromID(int)

Returns the name associated with the NavMesh build settings matching the provided agent type ID.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
public static string GetSettingsNameFromID(int agentTypeID)

Parameters

agentTypeID

The ID to look for.

Returns

Type

Description

stringThe name associated with the ID found.

Remarks

If no settings are found, the result is an empty string.