Example #1
0
        private void Awake()
        {
            _objectAnchorsService = ObjectAnchorsService.GetService();

            _surfaceObserver = TryToGetObserver();
            if (_surfaceObserver != null)
            {
                _surfaceObserver.Disable();
                _surfaceObserver.DisplayOption = SpatialAwarenessMeshDisplayOptions.None;
            }

            _objectTracker = FindObjectOfType <ObjectTracker>();
        }
        private void OnEnable()
        {
            StartSearchButton?.OnClick.AddListener(StartSearch);
            StopSearchButton?.OnClick.AddListener(StopSearch);

            ToggleSpatialMappingButton?.OnClick.AddListener(ToggleSpatialMapping);

            StartTracingButton?.OnClick.AddListener(StartTracing);
            StopTracingButton?.OnClick.AddListener(StopTracing);
            UploadTracingButton?.OnClick.AddListener(UploadTracing);

            _objectTracker = ObjectTracker.Instance;
        }
 private void Start()
 {
     _objectAnchorsService = ObjectAnchorsService.GetService();
     _objectTracker        = FindObjectOfType <ObjectTracker>();
 }
        void Start()
        {
            _objectAnchorsService = ObjectAnchorsService.GetService();

            _objectTracker = ObjectTracker.Instance;
        }
 private void Start()
 {
     _objectTracker = ObjectTracker.Instance;
     _debugText     = GetComponentInChildren <TextMesh>();
     MultiAnchorRenderer.MeshRendererComponent.sortingOrder = -100; // Render multi-anchor placement first so its depth values preclude rendering of other placements that are "under" it
 }