StopObserving() public method

Stops the Surface Observer.
Sets the Surface Observer state to ObserverStates.Stopped.
public StopObserving ( ) : void
return void
Ejemplo n.º 1
0
 /// <summary>
 /// Instructs the SurfacesurfaceObserver to stop updating the SpatialMapping mesh.
 /// </summary>
 public void StopObserver()
 {
     if (IsObserverRunning())
     {
         surfaceObserver.StopObserving();
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Instructs the SurfaceObserver to stop updating the SpatialMapping mesh.
        /// </summary>
        public void StopObserver()
        {
#if !UNITY_EDITOR
            if (IsObserverRunning())
            {
                surfaceObserver.StopObserving();
            }
#endif
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Instructs the SurfaceObserver to stop updating the SpatialMapping mesh.
        /// </summary>
        public void StopObserver()
        {
#if UNITY_EDITOR
            // Allow observering if a device is present (Holographic Remoting)
            if (!UnityEngine.XR.XRDevice.isPresent)
            {
                return;
            }
#endif
            if (IsObserverRunning())
            {
                surfaceObserver.StopObserving();
            }
        }