Documentation

Unity Engine

Unity Engine

remainingDistance

The distance between the agent's position and the destination on the current path.
Read time 1 minuteLast updated 2 months ago

Definition

  • Type: Property
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
public float remainingDistance { get; }

Remarks

If the remaining distance is unknown then this will have a value of infinity.