Ejemplo n.º 1
0
        static void RegisterDescriptor()
        {
            // No support before iOS 12.0
            if (!Api.AtLeast12_0())
            {
                return;
            }

            var capabilities = new XRObjectTrackingSubsystemDescriptor.Capabilities
            {
            };

            Register <ARKitXRObjectTrackingSubsystem.ARKitProvider, ARKitXRObjectTrackingSubsystem>("ARKit-ObjectTracking", capabilities);
        }
        public static void RegisterDescriptor()
        {
#if UNITY_IOS && !UNITY_EDITOR
            var iOSversion = OSVersion.Parse(Device.systemVersion);

            // No support before iOS 12.0
            if (iOSversion < new OSVersion(12))
            {
                return;
            }

            var capabilities = new XRObjectTrackingSubsystemDescriptor.Capabilities
            {
            };

            Register <ARKitXRObjectTrackingSubsystem>("ARKit-ObjectTracking", capabilities);
#endif
        }
Ejemplo n.º 3
0
        public static void RegisterDescriptor()
        {
            float iOSversion = float.Parse(Device.systemVersion, CultureInfo.InvariantCulture.NumberFormat);

            // No support before iOS 12.0
            if (iOSversion < 12f)
            {
                return;
            }

#if UNITY_IOS && !UNITY_EDITOR
            var capabilities = new XRObjectTrackingSubsystemDescriptor.Capabilities
            {
            };

            Register <ARKitXRObjectTrackingSubsystem>("ARKit-ObjectTracking", capabilities);
#endif
        }