{
m_Manager = FindObjectOfType<ARFaceManager>();
}
if (m_Manager != null && m_Manager.subsystem != null &&
m_Manager.descriptor.supportsEyeTracking)
if (m_Manager != null && m_Manager.subsystem != null && m_Manager.descriptor.supportsEyeTracking)
var infoGO = GetComponent<Text>();
infoGO.text = "This device supports eye tracking.";
void OnEnable()
var faceManager = FindObjectOfType<ARFaceManager>();
if (faceManager != null && faceManager.subsystem != null &&
faceManager.descriptor.supportsEyeTracking)
if (faceManager != null && faceManager.subsystem != null && faceManager.descriptor.supportsEyeTracking)
m_FaceSubsystem = (XRFaceSubsystem)faceManager.subsystem;
SetVisible((m_Face.trackingState == TrackingState.Tracking) && (ARSession.state > ARSessionState.Ready));
#if UNITY_2020_2_OR_NEWER
faceManager.subsystem.subsystemDescriptor.supportsEyeTracking)
#else
faceManager.subsystem.SubsystemDescriptor.supportsEyeTracking)
#endif
m_Face.updated += OnUpdated;