static void RegisterDescriptor() { var descriptorParams = new FaceSubsystemParams { supportsFacePose = true, supportsFaceMeshVerticesAndIndices = true, supportsFaceMeshUVs = true, id = "ARKit-Face", subsystemImplementationType = typeof(ARKitFaceSubsystem) }; XRFaceSubsystemDescriptor.Create(descriptorParams); }
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 }
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 }
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 }
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); }