Esempio n. 1
0
        static void RegisterDescriptor()
        {
            var descriptorParams = new FaceSubsystemParams
            {
                supportsFacePose = true,
                supportsFaceMeshVerticesAndIndices = true,
                supportsFaceMeshUVs = true,
                id = "ARKit-Face",
                subsystemImplementationType = typeof(ARKitFaceSubsystem)
            };

            XRFaceSubsystemDescriptor.Create(descriptorParams);
        }
Esempio n. 2
0
        static void RegisterDescriptor()
        {
#if UNITY_ANDROID && !UNITY_EDITOR
            var descriptorParams = new FaceSubsystemParams
            {
                supportsFacePose = true,
                supportsFaceMeshVerticesAndIndices = true,
                supportsFaceMeshUVs     = true,
                supportsFaceMeshNormals = true,
                id = "ARCore-Face",
                subsystemImplementationType = typeof(ARCoreFaceSubsystem)
            };

            XRFaceSubsystemDescriptor.Create(descriptorParams);
#endif
        }
Esempio n. 3
0
        static void RegisterDescriptor()
        {
#if UNITY_IOS && !UNITY_EDITOR
            var descriptorParams = new FaceSubsystemParams
            {
                supportsFacePose = true,
                supportsFaceMeshVerticesAndIndices = true,
                supportsFaceMeshUVs = true,
                supportsEyeTracking = UnityARKit_FaceProvider_IsEyeTrackingSupported(),
                id = "ARKit-Face",
                subsystemImplementationType = typeof(ARKitFaceSubsystem)
            };

            XRFaceSubsystemDescriptor.Create(descriptorParams);
#endif
        }
Esempio n. 4
0
        static void RegisterDescriptor()
        {
#if UNITY_EDITOR
            const string id = "ARKit-Face-Remote";
            var          descriptorParams = new FaceSubsystemParams
            {
                supportsFacePose = true,
                supportsFaceMeshVerticesAndIndices = true,
                supportsFaceMeshUVs = true,
                supportsEyeTracking = true,
                id = id,
                subsystemImplementationType = typeof(ARKitFaceRemoteSubsystem)
            };
            XRFaceSubsystemDescriptor.Create(descriptorParams);

            Debug.LogFormat("Registerd the {0} subsystem", id);
#endif // UNITY_EDITOR
        }
Esempio n. 5
0
        static void RegisterDescriptor()
        {
            if (!Api.platformAndroid || !Api.loaderPresent)
            {
                return;
            }

            var descriptorParams = new FaceSubsystemParams
            {
                supportsFacePose = true,
                supportsFaceMeshVerticesAndIndices = true,
                supportsFaceMeshUVs     = true,
                supportsFaceMeshNormals = true,
                id                    = "ARCore-Face",
                providerType          = typeof(ARCoreFaceSubsystem.ARCoreProvider),
                subsystemTypeOverride = typeof(ARCoreFaceSubsystem)
            };

            XRFaceSubsystemDescriptor.Create(descriptorParams);
        }