/// <inheritdoc/> public override void StartObserving() { if (IsRunning) { return; } base.StartObserving(); meshSubsystem?.Start(); // We want the first update immediately. lastUpdated = 0; }
/// <inheritdoc/> public override void Resume() { if (IsRunning) { Debug.LogWarning("The XR SDK spatial observer is currently running."); return; } using (ResumePerfMarker.Auto()) { if (meshSubsystem != null && !meshSubsystem.running) { meshSubsystem.Start(); } // We want the first update immediately. lastUpdated = 0; // UpdateObserver keys off of this value to start observing. IsRunning = true; } }