文档

Unity Engine


User Manual

Script Reference

Unity Engine


agentTypeID

The agent type ID the NavMesh will be baked for.
阅读时间1 分钟最后更新于 1 个月前

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.