Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetSettingsNameFromID(int)

Returns the name associated with the NavMesh build settings matching the provided agent type ID.
Read time 1 minuteLast updated 11 days ago

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.