Exemplo n.º 1
0
 /// <summary>
 /// Instructs the SurfaceObserver to start updating the SpatialMapping mesh.
 /// </summary>
 public void StartObserver()
 {
     if (!IsObserverRunning())
     {
         surfaceObserver.StartObserving();
         StartTime = Time.time;
     }
 }
Exemplo n.º 2
0
        /// <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.XR.XRDevice.isPresent)
            {
                return;
            }
#endif
            if (!IsObserverRunning())
            {
                surfaceObserver.StartObserving();
                StartTime = Time.time;
            }
        }