Documentation

Unity Engine

Download Unity

Unity Engine

remainingDistance

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

Definition

public float remainingDistance { get; }

Remarks

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