Documentation

Unity Engine

Download Unity

Unity Engine

isOnNavMesh

Is the agent currently bound to the navmesh?
Read time 1 minuteLast updated 9 hours ago

Definition

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.