文档

Unity Engine

Unity Engine

hasPath

Does the agent currently have a path? (Read Only)
阅读时间1 分钟最后更新于 1 个月前

Definition

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

Remarks

This property will be true if the agent has a path calculated to the desired destination and false otherwise.
Additional Resources: pathPending.