コード例 #1
0
        public static void ShowWindow(ToolBarSelectedButton select)
        {
            var window = GetWindow <QuickDeployWindow>(true, "Quick Deploy");

            window.minSize = new Vector2(WindowMinWidth, WindowMinHeight);
            _toolbarSelectedButtonIndex = (int)select;

            Config.LoadConfiguration();
        }
コード例 #2
0
        private void OnEnable()
        {
            Config.LoadConfiguration();

            var scenesViewState = Config.AssetBundleScenes ?? new PlayInstantSceneTreeView.State();

            _playInstantSceneTreeTreeView = new PlayInstantSceneTreeView(scenesViewState);
            _playInstantSceneTreeTreeView.OnTreeStateChanged += (treeState) =>
            {
                Config.AssetBundleScenes = treeState;
                Config.SaveConfiguration(true);
            };
        }