Example #1
0
 private void DisableAllPickingNoUndo()
 {
     if (StageNavigationManager.instance.currentItem.isPrefabStage)
     {
         var scene = StageNavigationManager.instance.GetCurrentPrefabStage().scene;
         SceneVisibilityState.EnablePicking(StageNavigationManager.instance.GetCurrentPrefabStage().scene);
         SceneVisibilityState.DisablePicking(scene);
     }
     else
     {
         for (int i = 0; i < SceneManager.sceneCount; i++)
         {
             DisablePicking(SceneManager.GetSceneAt(i));
         }
     }
 }
Example #2
0
        private void DisableAllPickingNoUndo()
        {
            PreviewSceneStage previewSceneStage = StageNavigationManager.instance.currentStage as PreviewSceneStage;

            if (previewSceneStage != null)
            {
                var scene = previewSceneStage.scene;
                SceneVisibilityState.EnablePicking(previewSceneStage.scene);
                SceneVisibilityState.DisablePicking(scene);
            }
            else
            {
                for (int i = 0; i < SceneManager.sceneCount; i++)
                {
                    DisablePicking(SceneManager.GetSceneAt(i));
                }
            }
        }