文档

Unity Engine

Unity Engine

isOnNavMesh

Is the agent currently bound to the navmesh? (Read Only)
阅读时间1 分钟最后更新于 1 个月前

Definition

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

Remarks

This property is false if the agent, for some reason, could not bind to the navmesh. E.g. if Scene has no navmesh.