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