Skip to content

NavMeshAgent Extensions

Andrzej Kebab edited this page Feb 2, 2024 · 1 revision

UtilityLibrary.Unity.Runtime

Arrival Status

IsArrive

Checks if the NavMeshAgent has arrived at its destination.

bool hasArrived = navMeshAgent.IsArrive();

Parameters:

  • {NavMeshAgent} agent: The NavMeshAgent instance.

Returns:

  • {bool}: Returns true if the agent is active, on the NavMesh, not pending a path, and within stopping distance of its destination. Returns false otherwise.

Clone this wiki locally