NavMeshAgent.isOnNavMesh
public bool isOnNavMesh;
Description 描述
Is the agent currently bound to the navmesh? (Read Only)
This property is false if the agent, for some reason, could not bind to the navmesh. E.g. if Scene has no navmesh.
Is the agent currently bound to the navmesh? (Read Only)
This property is false if the agent, for some reason, could not bind to the navmesh. E.g. if Scene has no navmesh.