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.

Did you find this page useful? Please give it a rating: