Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


isOnNavMesh

Is the agent currently bound to the navmesh?
Read time 1 minuteLast updated 12 days ago

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.