|
|
|
|
|
|
{ |
|
|
|
var faceManager = FindObjectOfType<ARFaceManager>(); |
|
|
|
if (faceManager != null && faceManager.subsystem != null && |
|
|
|
#if UNITY_2020_2_OR_NEWER
|
|
|
|
faceManager.subsystem.subsystemDescriptor.supportsEyeTracking) |
|
|
|
#else
|
|
|
|
faceManager.subsystem.SubsystemDescriptor.supportsEyeTracking) |
|
|
|
#endif
|
|
|
|
faceManager.descriptor.supportsEyeTracking) |
|
|
|
{ |
|
|
|
m_FaceSubsystem = (XRFaceSubsystem)faceManager.subsystem; |
|
|
|
SetVisible((m_Face.trackingState == TrackingState.Tracking) && (ARSession.state > ARSessionState.Ready)); |
|
|
|