This version of Unity is unsupported.

RaycastResult.distance

public float distance;

Description

Distance to the hit.