static void RegisterDescriptor() { if (!Api.AtLeast11_0()) { return; } #if UNITY_IOS && !UNITY_EDITOR var descriptorParams = new XRDepthSubsystemDescriptor.Cinfo { id = "ARKit-Depth", #if UNITY_2020_2_OR_NEWER providerType = typeof(ARKitXRDepthSubsystem.ARKitProvider), subsystemTypeOverride = typeof(ARKitXRDepthSubsystem), #else implementationType = typeof(ARKitXRDepthSubsystem), #endif supportsFeaturePoints = true, supportsConfidence = false, supportsUniqueIds = true }; XRDepthSubsystemDescriptor.RegisterDescriptor(descriptorParams); #endif }
static void RegisterDescriptor() { var descriptorParams = new XRDepthSubsystemDescriptor.Cinfo { id = "ARKit-Depth", implementationType = typeof(ARKitXRDepthSubsystem), supportsFeaturePoints = true, supportsConfidence = false, supportsUniqueIds = true }; XRDepthSubsystemDescriptor.RegisterDescriptor(descriptorParams); }
static void RegisterDescriptor() { #if UNITY_ANDROID && !UNITY_EDITOR var descriptorParams = new XRDepthSubsystemDescriptor.Cinfo { id = "ARCore-Depth", implementationType = typeof(ARCoreXRDepthSubsystem), supportsFeaturePoints = true, supportsUniqueIds = true, supportsConfidence = true }; XRDepthSubsystemDescriptor.RegisterDescriptor(descriptorParams); #endif }
static void RegisterDescriptor() { if (!Api.platformAndroid || !Api.loaderPresent) { return; } var descriptorParams = new XRDepthSubsystemDescriptor.Cinfo { id = "ARCore-Depth", providerType = typeof(ARCoreXRDepthSubsystem.ARCoreProvider), subsystemTypeOverride = typeof(ARCoreXRDepthSubsystem), supportsFeaturePoints = true, supportsUniqueIds = true, supportsConfidence = true }; XRDepthSubsystemDescriptor.RegisterDescriptor(descriptorParams); }
static void RegisterDescriptor() { #if UNITY_ANDROID && !UNITY_EDITOR var descriptorParams = new XRDepthSubsystemDescriptor.Cinfo { id = "ARCore-Depth", #if UNITY_2020_2_OR_NEWER providerType = typeof(ARCoreXRDepthSubsystem.ARCoreProvider), subsystemTypeOverride = typeof(ARCoreXRDepthSubsystem), #else implementationType = typeof(ARCoreXRDepthSubsystem), #endif supportsFeaturePoints = true, supportsUniqueIds = true, supportsConfidence = true }; XRDepthSubsystemDescriptor.RegisterDescriptor(descriptorParams); #endif }