Beispiel #1
0
 public override bool Deinitialize()
 {
     DestroySubsystem <XRMeshSubsystem>();
     DestroySubsystem <XRDisplaySubsystem>();
     DestroySubsystem <XRGestureSubsystem>();
     MagicLeapPrivileges.Shutdown();
     return(true);
 }
            /// <summary>
            /// Destroy the image tracking subsystem.
            /// </summary>
            public override void Destroy()
            {
                if (s_NativeProviderPtr != IntPtr.Zero)
                {
                    Native.Destroy(s_NativeProviderPtr);
                    s_NativeProviderPtr = IntPtr.Zero;
                    s_NativeTrackerCreationJobHandle = default(JobHandle);
                }

                m_PerceptionHandle.Dispose();

                // Release retained privileges class
                MagicLeapPrivileges.Shutdown();
            }
 public override bool Deinitialize()
 {
     if (CanCreateMeshSubsystem())
     {
         DestroySubsystem <XRMeshSubsystem>();
     }
     DestroySubsystem <XRDisplaySubsystem>();
     DestroySubsystem <XRGestureSubsystem>();
     DestroySubsystem <XRInputSubsystem>();
     DestroySubsystem <XRImageTrackingSubsystem>();
     DestroySubsystem <XRRaycastSubsystem>();
     DestroySubsystem <XRAnchorSubsystem>();
     DestroySubsystem <XRPlaneSubsystem>();
     DestroySubsystem <XRSessionSubsystem>();
     MagicLeapPrivileges.Shutdown();
     return(true);
 }