Пример #1
0
        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
        }
 public void RegisterTestDescriptor()
 {
     XRDepthSubsystemDescriptor.RegisterDescriptor(new XRDepthSubsystemDescriptor.Cinfo
     {
         id                    = "Test-Depth",
         providerType          = typeof(XRDepthSubsystemImpl.TestProvider),
         subsystemTypeOverride = typeof(XRDepthSubsystemImpl)
     });
 }
 internal static void Register()
 {
     XRDepthSubsystemDescriptor.RegisterDescriptor(new XRDepthSubsystemDescriptor.Cinfo
     {
         id                    = typeof(UnityXRMockDepthSubsystem).FullName,
         providerType          = typeof(MockProvider),
         subsystemTypeOverride = typeof(UnityXRMockDepthSubsystem),
         supportsConfidence    = false,
         supportsFeaturePoints = false,
         supportsUniqueIds     = true
     });
 }
Пример #4
0
        static void RegisterDescriptor()
        {
            var descriptorParams = new XRDepthSubsystemDescriptor.Cinfo
            {
                id = "ARKit-Depth",
                implementationType    = typeof(ARKitXRDepthSubsystem),
                supportsFeaturePoints = true,
                supportsConfidence    = false,
                supportsUniqueIds     = true
            };

            XRDepthSubsystemDescriptor.RegisterDescriptor(descriptorParams);
        }
Пример #5
0
        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
        }
Пример #6
0
        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);
        }
Пример #7
0
        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
        }