This version of Unity is unsupported.
Experimental: this API is experimental and might be changed or removed in the future.

XRRaycastHit.Distance

public float Distance;

Description

The distance, in meters, from the screen to the hit's XRRaycastSubsystemHit.Position.