文档

Unity Engine

Unity Engine

isOnOffMeshLink

Is the agent currently positioned on an OffMeshLink?
阅读时间1 分钟最后更新于 25 天前

Definition

  • Type: Property
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
public bool isOnOffMeshLink { get; }

Remarks

This property is useful when NavMeshAgent.autoTraverseOffMeshLink is false and custom movement is needed when crossing the link.