Exemple #1
0
 /// <summary>
 /// Instructs the SurfacesurfaceObserver to stop updating the SpatialMapping mesh.
 /// </summary>
 public void StopObserver()
 {
     if (IsObserverRunning())
     {
         surfaceObserver.StopObserving();
     }
 }
Exemple #2
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();
            }
        }