Beispiel #1
0
        public void ChangeScanStatus()
        {
            _enable = !_enable;
            _sesion.SessionConfig.EnablePlaneFinding = _enable;
            ModelSelector.SetActive(_enable);
            SnackBar.SetActive(_enable);
            PointCloud.SetActive(_enable);
            Camera.SetActive(_enable);
            Background.SetActive(!_enable);
            _sesion.OnEnable();
            GetComponentInChildren <Text>().text = _enable ? "Done" : "Edit";
//			if (!_enable) Controller.GetComponent<HelloARController>().virtualObject = null;
        }
 public void TogglePlanes(Boolean enable)
 {
     arSession.SessionConfig.EnablePlaneFinding = enable;
     arSession.OnEnable();
     this.arController.planes.ForEach(p => p.SetActive(enable));
 }