Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


distance

Distance to the point of hit.
Read time 1 minuteLast updated 12 days ago

Definition

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

Remarks

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