Documentation

Unity Engine

Download Unity

Unity Engine

distance

Distance to the point of hit.
Read time 1 minuteLast updated 9 hours ago

Definition

public float distance { get; set; }

Remarks

If the value is not finite, the entire NavMeshHit object represents the result of an invalid query.