RaycastHit.Distance

The distance from the ray’s origin to the impact point.

RaycastHit.Distance

Property

Raycast Hit RaycastHit
Distance Output the hit distance