Exemple #1
0
 public void RegisterTestDescriptor()
 {
     XRAnchorSubsystemDescriptor.Create(new XRAnchorSubsystemDescriptor.Cinfo
     {
         id                    = "Test-Anchor",
         providerType          = typeof(XRAnchorSubsystemImpl.TestProvider),
         subsystemTypeOverride = typeof(XRAnchorSubsystemImpl)
     });
 }
Exemple #2
0
 static void RegisterDescriptor()
 {
     XRAnchorSubsystemDescriptor.Create(new XRAnchorSubsystemDescriptor.Cinfo
     {
         id = "Windows Mixed Reality Anchor",
         subsystemImplementationType  = typeof(WindowsMRAnchorSubsystem),
         supportsTrackableAttachments = false
     });
 }
Exemple #3
0
 internal static void Register()
 {
     XRAnchorSubsystemDescriptor.Create(new XRAnchorSubsystemDescriptor.Cinfo
     {
         id = ID,
         subsystemImplementationType  = typeof(UnityXRMockAnchorSubsystem),
         supportsTrackableAttachments = true
     });
 }
 internal static void Register()
 {
     XRAnchorSubsystemDescriptor.Create(new XRAnchorSubsystemDescriptor.Cinfo
     {
         id                           = typeof(UnityXRMockAnchorSubsystem).FullName,
         providerType                 = typeof(MockProvider),
         subsystemTypeOverride        = typeof(UnityXRMockAnchorSubsystem),
         supportsTrackableAttachments = true
     });
 }
Exemple #5
0
        static void RegisterDescriptor()
        {
#if PLATFORM_LUMIN
            XRAnchorSubsystemDescriptor.Create(new XRAnchorSubsystemDescriptor.Cinfo
            {
                id = "MagicLeap-Anchor",
                subsystemImplementationType  = typeof(MagicLeapAnchorSubsystem),
                supportsTrackableAttachments = false
            });
#endif
        }
        static void RegisterDescriptor()
        {
#if UNITY_IOS && !UNITY_EDITOR
            var cinfo = new XRAnchorSubsystemDescriptor.Cinfo
            {
                id = "ARKit-Anchor",
                subsystemImplementationType  = typeof(ARKitAnchorSubsystem),
                supportsTrackableAttachments = true
            };

            XRAnchorSubsystemDescriptor.Create(cinfo);
#endif
        }
Exemple #7
0
        static void RegisterDescriptor()
        {
            XRAnchorSubsystemDescriptor.Create(new XRAnchorSubsystemDescriptor.Cinfo
            {
                id = "Windows Mixed Reality Anchor",
#if UNITY_2020_2_OR_NEWER
                providerType          = typeof(WindowsMRProvider),
                subsystemTypeOverride = typeof(WindowsMRAnchorSubsystem),
#else
                subsystemImplementationType = typeof(WindowsMRAnchorSubsystem),
#endif
                supportsTrackableAttachments = false
            });
        }
Exemple #8
0
        static void RegisterDescriptor()
        {
#if PLATFORM_LUMIN
            XRAnchorSubsystemDescriptor.Create(new XRAnchorSubsystemDescriptor.Cinfo
            {
                id = "MagicLeap-Anchor",
#if UNITY_2020_2_OR_NEWER
                providerType          = typeof(MagicLeapAnchorSubsystem.MagicLeapProvider),
                subsystemTypeOverride = typeof(MagicLeapAnchorSubsystem),
#else
                subsystemImplementationType = typeof(MagicLeapAnchorSubsystem),
#endif
                supportsTrackableAttachments = false
            });
#endif
        }
        static void RegisterDescriptor()
        {
            if (!Api.platformAndroid || !Api.loaderPresent)
            {
                return;
            }

            var cinfo = new XRAnchorSubsystemDescriptor.Cinfo
            {
                id                           = "ARCore-Anchor",
                providerType                 = typeof(ARCoreAnchorSubsystem.ARCoreProvider),
                subsystemTypeOverride        = typeof(ARCoreAnchorSubsystem),
                supportsTrackableAttachments = true
            };

            XRAnchorSubsystemDescriptor.Create(cinfo);
        }
        static void RegisterDescriptor()
        {
#if UNITY_ANDROID && !UNITY_EDITOR
            var cinfo = new XRAnchorSubsystemDescriptor.Cinfo
            {
                id = "ARCore-Anchor",
#if UNITY_2020_2_OR_NEWER
                providerType          = typeof(ARCoreAnchorSubsystem.ARCoreProvider),
                subsystemTypeOverride = typeof(ARCoreAnchorSubsystem),
#else
                subsystemImplementationType = typeof(ARCoreAnchorSubsystem),
#endif
                supportsTrackableAttachments = true
            };

            XRAnchorSubsystemDescriptor.Create(cinfo);
#endif
        }
        static void RegisterDescriptor()
        {
            if (!Api.AtLeast11_0())
            {
                return;
            }

#if UNITY_IOS && !UNITY_EDITOR
            var cinfo = new XRAnchorSubsystemDescriptor.Cinfo
            {
                id                           = "ARKit-Anchor",
                providerType                 = typeof(ARKitAnchorSubsystem.ARKitProvider),
                subsystemTypeOverride        = typeof(ARKitAnchorSubsystem),
                supportsTrackableAttachments = true
            };

            XRAnchorSubsystemDescriptor.Create(cinfo);
#endif
        }