示例#1
0
 public void RegisterTestDescriptor()
 {
     XRRaycastSubsystemDescriptor.RegisterDescriptor(new XRRaycastSubsystemDescriptor.Cinfo
     {
         id                    = "Test-Raycast",
         providerType          = typeof(XRRaycastSubsystemImpl.MockProvider),
         subsystemTypeOverride = typeof(XRRaycastSubsystemImpl)
     });
 }
 internal static void Register()
 {
     XRRaycastSubsystemDescriptor.RegisterDescriptor(new XRRaycastSubsystemDescriptor.Cinfo
     {
         id = ID,
         subsystemImplementationType  = typeof(UnityXRMockRaycastSubsytem),
         supportedTrackableTypes      = TrackableType.All,
         supportsViewportBasedRaycast = true,
         supportsWorldBasedRaycast    = true
     });
 }
示例#3
0
        static void RegisterDescriptor()
        {
#if PLATFORM_LUMIN
            XRRaycastSubsystemDescriptor.RegisterDescriptor(new XRRaycastSubsystemDescriptor.Cinfo
            {
                id = "MagicLeap-Raycast",
                subsystemImplementationType  = typeof(MagicLeapRaycastSubsystem),
                supportsViewportBasedRaycast = false,
                supportsWorldBasedRaycast    = false,
                supportedTrackableTypes      = TrackableType.None,
            });
#endif
        }
 static void RegisterDescriptor()
 {
     XRRaycastSubsystemDescriptor.RegisterDescriptor(new XRRaycastSubsystemDescriptor.Cinfo
     {
         id = "ARCore-Raycast",
         subsystemImplementationType  = typeof(ARCoreRaycastSubsystem),
         supportsViewportBasedRaycast = true,
         supportsWorldBasedRaycast    = true,
         supportedTrackableTypes      =
             (TrackableType.Planes & ~TrackableType.PlaneWithinInfinity) |
             TrackableType.FeaturePoint
     });
 }
 static void RegisterDescriptor()
 {
     XRRaycastSubsystemDescriptor.RegisterDescriptor(new XRRaycastSubsystemDescriptor.Cinfo
     {
         id = "ARKit-Raycast",
         subsystemImplementationType  = typeof(ARKitRaycastSubsystem),
         supportsViewportBasedRaycast = true,
         supportsWorldBasedRaycast    = false,
         supportedTrackableTypes      =
             TrackableType.Planes |
             TrackableType.FeaturePoint
     });
 }
示例#6
0
 internal static void Register()
 {
     XRRaycastSubsystemDescriptor.RegisterDescriptor(new XRRaycastSubsystemDescriptor.Cinfo
     {
         id                           = typeof(UnityXRMockRaycastSubsystem).FullName,
         providerType                 = typeof(MockProvider),
         subsystemTypeOverride        = typeof(UnityXRMockRaycastSubsystem),
         supportedTrackableTypes      = TrackableType.All,
         supportsViewportBasedRaycast = true,
         supportsWorldBasedRaycast    = true,
         supportsTrackedRaycasts      = true
     });
 }
示例#7
0
 internal static void RegisterDescriptor(XRRaycastSubsystemDescriptor descriptor)
 {
     if (descriptor != null)
     {
         descriptor.subsystemImplementationType = typeof(UnityXRMockRaycastSubsytem);
     }
     else
     {
         XRRaycastSubsystemDescriptor.RegisterDescriptor(new XRRaycastSubsystemDescriptor.Cinfo
         {
             id = "UnityXRMock-Raycast",
             subsystemImplementationType = typeof(UnityXRMockRaycastSubsytem),
         });
     }
 }
示例#8
0
        static void RegisterDescriptor()
        {
            XRRaycastSubsystemDescriptor.RegisterDescriptor(new XRRaycastSubsystemDescriptor.Cinfo
            {
                id = "MARS-Raycast",
#if ARSUBSYSTEMS_4_OR_NEWER && UNITY_2020_2_OR_NEWER
                providerType          = typeof(RaycastSubsystem.MARSXRProvider),
                subsystemTypeOverride = typeof(RaycastSubsystem),
#else
                subsystemImplementationType = typeof(RaycastSubsystem),
#endif
                supportsViewportBasedRaycast = true,
                supportsWorldBasedRaycast    = true,
                supportedTrackableTypes      = TrackableType.Planes,
            });
        }
        static void RegisterDescriptor()
        {
#if PLATFORM_LUMIN
            XRRaycastSubsystemDescriptor.RegisterDescriptor(new XRRaycastSubsystemDescriptor.Cinfo
            {
                id = "MagicLeap-Raycast",
#if UNITY_2020_2_OR_NEWER
                providerType          = typeof(MagicLeapRaycastSubsystem.MagicLeapProvider),
                subsystemTypeOverride = typeof(MagicLeapRaycastSubsystem),
#else
                subsystemImplementationType = typeof(MagicLeapRaycastSubsystem),
#endif
                supportsViewportBasedRaycast = false,
                supportsWorldBasedRaycast    = false,
                supportedTrackableTypes      = TrackableType.None,
            });
#endif
        }
        static void RegisterDescriptor()
        {
#if UNITY_ANDROID && !UNITY_EDITOR
            XRRaycastSubsystemDescriptor.RegisterDescriptor(new XRRaycastSubsystemDescriptor.Cinfo
            {
                id = "ARCore-Raycast",
#if UNITY_2020_2_OR_NEWER
                providerType          = typeof(ARCoreRaycastSubsystem.ARCoreProvider),
                subsystemTypeOverride = typeof(ARCoreRaycastSubsystem),
#else
                subsystemImplementationType = typeof(ARCoreRaycastSubsystem),
#endif
                supportsViewportBasedRaycast = true,
                supportsWorldBasedRaycast    = true,
                supportedTrackableTypes      =
                    (TrackableType.Planes & ~TrackableType.PlaneWithinInfinity) |
                    TrackableType.FeaturePoint
            });
#endif
        }
        static void RegisterDescriptor()
        {
            if (!Api.platformAndroid || !Api.loaderPresent)
            {
                return;
            }

            XRRaycastSubsystemDescriptor.RegisterDescriptor(new XRRaycastSubsystemDescriptor.Cinfo
            {
                id                           = "ARCore-Raycast",
                providerType                 = typeof(ARCoreRaycastSubsystem.ARCoreProvider),
                subsystemTypeOverride        = typeof(ARCoreRaycastSubsystem),
                supportsViewportBasedRaycast = true,
                supportsWorldBasedRaycast    = true,
                supportedTrackableTypes      =
                    (TrackableType.Planes & ~TrackableType.PlaneWithinInfinity) |
                    TrackableType.FeaturePoint,
                supportsTrackedRaycasts = true,
            });
        }
        static void RegisterDescriptor()
        {
            if (!Api.platformAndroid || !Api.loaderPresent)
            {
                return;
            }

            XRRaycastSubsystemDescriptor.RegisterDescriptor(new XRRaycastSubsystemDescriptor.Cinfo
            {
                id = "ARCore-Raycast",
#if UNITY_2020_2_OR_NEWER
                providerType          = typeof(ARCoreRaycastSubsystem.ARCoreProvider),
                subsystemTypeOverride = typeof(ARCoreRaycastSubsystem),
#else
                subsystemImplementationType = typeof(ARCoreRaycastSubsystem),
#endif
                supportsViewportBasedRaycast = true,
                supportsWorldBasedRaycast    = true,
                supportedTrackableTypes      =
                    (TrackableType.Planes & ~TrackableType.PlaneWithinInfinity) |
                    TrackableType.FeaturePoint
            });
        }