Exemple #1
0
        public TestSceneSidePanel()
        {
            SidePanelOverlay sidePanel;

            Add(sidePanel = new SidePanelOverlay());

            AddStep("toggle", () => sidePanel.ToggleVisibility());
        }
Exemple #2
0
        public bool OnPressed(HoloTrackAction action)
        {
            switch (action)
            {
            case HoloTrackAction.ToggleSettings:
                settings.ToggleVisibility();
                return(true);

            case HoloTrackAction.ToggleCamera:
                sidePanel.ToggleVisibility();
                return(true);

            default:
                return(false);
            }
        }