/// <summary> /// Instructs the SurfaceObserver to start updating the SpatialMapping mesh. /// </summary> public void StartObserver() { #if UNITY_EDITOR || UNITY_UWP // Allow observering if a device is present (Holographic Remoting) if (!UnityEngine.XR.XRDevice.isPresent) return; #endif if (!IsObserverRunning()) { surfaceObserver.StartObserving(); StartTime = Time.unscaledTime; } }
/// <summary> /// Instructs the SurfaceObserver to start updating the SpatialMapping mesh. /// </summary> public void StartObserver() { #if UNITY_EDITOR // Allow observering if a device is present (Holographic Remoting) if (!UnityEngine.VR.VRDevice.isPresent) { return; } #endif if (!IsObserverRunning()) { surfaceObserver.StartObserving(); StartTime = Time.time; } }
/// <summary> /// Instructs the SurfaceObserver to start updating the SpatialMapping mesh. /// </summary> public void StartObserver() { #if UNITY_EDITOR || UNITY_UWP // Allow observering if a device is present (Holographic Remoting) if (!UnityEngine.XR.XRDevice.isPresent) { return; } #endif if (UnityEngine.XR.WSA.HolographicSettings.IsDisplayOpaque) { return; } if (!IsObserverRunning()) { surfaceObserver.StartObserving(); StartTime = Time.time; } }
/// <summary> /// Instructs the SurfaceObserver to start updating the SpatialMapping mesh. /// </summary> public void StartObserver() { #if UNITY_WSA // Allow observing if a device is present (Holographic Remoting) #if UNITY_2017_2_OR_NEWER if (!UnityEngine.XR.XRDevice.isPresent) { return; } #else if (!UnityEngine.VR.VRDevice.isPresent) { return; } #endif #endif if (!IsObserverRunning()) { surfaceObserver.StartObserving(); StartTime = Time.unscaledTime; } }