Version: 2020.1

Eyes

struct in UnityEngine.XR

切换到手册

描述

包含 XR 输入子系统中 XRNode 处设备的眼睛跟踪数据。

表示设备收集的眼睛跟踪数据。Eyes 类型包含眼睛位置、旋转以及指示左眼和右眼的凝视点和眨眼值的数据。全部眼睛空间信息都在 Unity 坐标空间中。

公共函数

TryGetFixationPointGets the point represents the convergence of the line of sight for both eyes.
TryGetLeftEyeOpenAmount获取表示左眼张开程度的值。
TryGetLeftEyePosition获取描述左眼位置的 Vector3。
TryGetLeftEyeRotation获取描述左眼旋转的 Quaternion。
TryGetRightEyeOpenAmount获取表示右眼张开程度的值。
TryGetRightEyePosition获取描述右眼位置的 Vector3。
TryGetRightEyeRotation获取描述右眼旋转的 Quaternion。