예제 #1
0
 /// <summary>
 /// Cleans up the component.
 /// </summary>
 void OnDestroy()
 {
     #if PLATFORM_LUMIN
     MLHeadTracking.UnregisterOnHeadTrackingMapEvent(OnHeadTrackingMapEvent);
     MLHeadTracking.Stop();
     MLInput.OnControllerButtonDown -= OnButtonDown;
     #endif
 }
예제 #2
0
 /// <summary>
 /// Cleans up the component.
 /// </summary>
 void OnDestroy()
 {
     #if PLATFORM_LUMIN
     MLInput.OnControllerTouchpadGestureStart -= OnTouchpadGestureStart;
     MLInput.OnTriggerDown          -= OnTriggerDown;
     MLInput.OnControllerButtonDown -= OnButtonDown;
     MLHeadTracking.UnregisterOnHeadTrackingMapEvent(OnHeadTrackingMapEvent);
     MLHeadTracking.Stop();
     #endif
 }
예제 #3
0
        /// <summary>
        /// Clean up.
        /// Destroys all planes instances created.
        /// </summary>
        void OnDestroy()
        {
            #if PLATFORM_LUMIN
            _planesBehavior.OnQueryPlanesResult -= HandleOnQueriedPlanes;

            MLHeadTracking.UnregisterOnHeadTrackingMapEvent(HandleOnHeadTrackingMapEvent);
            MLHeadTracking.Stop();
            #endif

            DestroyPlanes();
            DestroyBoundaries();
        }
예제 #4
0
 /// <summary>
 /// Stops the MLPersistentCoordinateFrames API and unregisters from events and
 /// </summary>
 void OnDestroy()
 {
     #if PLATFORM_LUMIN
     PCFVisualizer.OnFindAllPCFs -= HandleOnFindAllPCFs;
     MLPersistentCoordinateFrames.OnLocalized -= HandleOnLocalized;
     MLPersistentCoordinateFrames.Stop();
     MLHeadTracking.Stop();
     MLInput.OnControllerButtonDown              -= HandleControllerButtonDown;
     MLInput.OnControllerTouchpadGestureStart    -= HandleTouchpadGestureStart;
     MLInput.OnControllerTouchpadGestureContinue -= HandleTouchpadGestureContinue;
     MLInput.OnControllerTouchpadGestureEnd      -= HandleTouchpadGestureEnd;
     #endif
 }