|
|
|
|
|
|
void OnEnable() |
|
|
|
{ |
|
|
|
var faceManager = FindObjectOfType<ARFaceManager>(); |
|
|
|
if (faceManager != null && faceManager.subsystem != null && faceManager.subsystem.SubsystemDescriptor.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)); |
|
|
|
|
|
|
m_FixationReticleGameObject.GetComponent<RectTransform>().anchoredPosition3D = mainCamera.ViewportToScreenPoint(mirrorFixationInView); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |