Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


status

Status of the path.
Read time 1 minuteLast updated 11 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
public NavMeshPathStatus status { get; }

Remarks

This reports whether the path reaches the target, reaches part of the way to the target, or is just not valid. Among other reasons, a path returns NavMeshPathStatus.PathInvalid if it can't determine the nearest polygon of the source or target position, or if the path would have been a partial result, but the point closest to the target on the final polygon could not be determined. These situations are rare, and may arise if the navigation mesh is being changed while a path is being calculated.