Пример #1
0
 void PanelFocusChanged(string panelName)
 {
     if (panelName == "Editing Menu")
     {
         VRGestureUI.ToggleCanvasGroup(canvasGroup, true);
         currentGesture   = VRGestureManager.Instance.gestureToRecord;
         currentNeuralNet = VRGestureManager.Instance.currentNeuralNet;
         RefreshGestureExamples();
         PositionGestureGallery();
         GenerateGestureGallery();
     }
     else if (panelName == "Edit Menu")
     {
         VRGestureUI.ToggleCanvasGroup(canvasGroup, false);
         DestroyGestureGallery();
     }
 }
Пример #2
0
        public void FocusPanel(string panelName)
        {
            currentPanel = panelName;

            if (OnPanelFocusChanged != null)
            {
                OnPanelFocusChanged(panelName);
            }

            foreach (CanvasGroup panel in panels)
            {
                if (panel.gameObject.name == panelName)
                {
                    VRGestureUI.ToggleCanvasGroup(panel, true);
                }
                else
                {
                    VRGestureUI.ToggleCanvasGroup(panel, false);
                }
            }
        }
 public void OnPointerExit()
 {
     VRGestureUI.ToggleCanvasGroup(trash, false, 0);
 }