Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


agentTypeID

The agent type ID the NavMesh will be baked for.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
public int agentTypeID { get; set; }

Remarks

Each NavMeshAgent or NavMeshQueryFilter can only use a NavMesh which is built for its agent type; it is the ID that is matched.