public void StopObserver() { _surfaceObserver = TryToGetObserver(); if (_surfaceObserver != null) { _surfaceObserver.Disable(); _surfaceObserver.DisplayOption = SpatialAwarenessMeshDisplayOptions.None; Debug.Log("Observer Stopped"); } ObserverRunning = false; }
private void Awake() { _objectAnchorsService = ObjectAnchorsService.GetService(); _surfaceObserver = TryToGetObserver(); if (_surfaceObserver != null) { _surfaceObserver.Disable(); _surfaceObserver.DisplayOption = SpatialAwarenessMeshDisplayOptions.None; } _objectTracker = FindObjectOfType <ObjectTracker>(); }