public void GetGazeData() { // Get eye tracking data in local space var eyeTrackingData = TobiiXR.GetEyeTrackingData(TobiiXR_TrackingSpace.Local); _eyeGazeData.Timestamp = eyeTrackingData.Timestamp; _eyeGazeData.isRayValid = eyeTrackingData.GazeRay.IsValid; _eyeGazeData.Origin = eyeTrackingData.GazeRay.Origin; _eyeGazeData.Direction = eyeTrackingData.GazeRay.Direction; _eyeGazeData.Distance = eyeTrackingData.ConvergenceDistance; _eyeGazeData.isDistanceValid = eyeTrackingData.ConvergenceDistanceIsValid; }