Exemple #1
0
 private static void EditorSceneManagerOnSceneSaving(Scene scene, string path)
 {
     SceneVisibilityState.OnSceneSaving(scene, path);
 }
Exemple #2
0
 private static void EditorSceneManagerOnSceneClosing(Scene scene, bool removingScene)
 {
     SceneVisibilityState.GeneratePersistentDataForLoadedScene(scene);
 }
Exemple #3
0
 public bool IsPickingEnabledOnAllDescendants(GameObject gameObject)
 {
     return(SceneVisibilityState.IsPickingEnabledOnAllChildren(gameObject));
 }
Exemple #4
0
 public void ExitIsolation()
 {
     Undo.RecordObject(SceneVisibilityState.GetInstance(), "Exit Isolation");
     RevertIsolationCurrentStage();
 }
Exemple #5
0
 private static void UndoRedoPerformed()
 {
     SceneVisibilityState.ForceDataUpdate();
 }
Exemple #6
0
 public bool AreAllDescendantsVisible(GameObject gameObject)
 {
     return(SceneVisibilityState.AreAllChildrenVisible(gameObject));
 }
Exemple #7
0
 public void EnablePicking(GameObject[] gameObjects, bool includeDescendants)
 {
     Undo.RecordObject(SceneVisibilityState.GetInstance(), "Enable Picking GameObjects");
     SceneVisibilityState.SetGameObjectsPickingDisabled(gameObjects, false, includeDescendants);
 }
Exemple #8
0
 public bool AreAnyDescendantsHidden(Scene scene)
 {
     return(SceneVisibilityState.HasHiddenGameObjects(scene));
 }
Exemple #9
0
 public bool IsPickingDisabledOnAnyDescendant(Scene scene)
 {
     return(SceneVisibilityState.ContainsGameObjectsWithPickingDisabled(scene));
 }
Exemple #10
0
 public void Hide(GameObject[] gameObjects, bool includeDescendants)
 {
     Undo.RecordObject(SceneVisibilityState.GetInstance(), "Hide GameObjects");
     SceneVisibilityState.SetGameObjectsHidden(gameObjects, true, includeDescendants);
 }
Exemple #11
0
 public void DisablePicking(GameObject gameObject, bool includeDescendants)
 {
     Undo.RecordObject(SceneVisibilityState.GetInstance(), "Disable Picking GameObject");
     SceneVisibilityState.SetGameObjectPickingDisabled(gameObject, true, includeDescendants);
 }
Exemple #12
0
 public void Show(GameObject gameObject, bool includeDescendants)
 {
     Undo.RecordObject(SceneVisibilityState.GetInstance(), "Show GameObject");
     SceneVisibilityState.SetGameObjectHidden(gameObject, false, includeDescendants);
 }
Exemple #13
0
 public void DisableAllPicking()
 {
     Undo.RecordObject(SceneVisibilityState.GetInstance(), "Disable All Picking");
     DisableAllPickingNoUndo();
 }
Exemple #14
0
 public void HideAll()
 {
     Undo.RecordObject(SceneVisibilityState.GetInstance(), "Hide All");
     HideAllNoUndo();
     VisibilityChanged();
 }
Exemple #15
0
 public void ToggleVisibility(GameObject gameObject, bool includeDescendants)
 {
     Undo.RecordObject(SceneVisibilityState.GetInstance(), "Toggle Visibility");
     SceneVisibilityState.SetGameObjectHidden(gameObject, !SceneVisibilityState.IsGameObjectHidden(gameObject), includeDescendants);
 }
Exemple #16
0
 public void Hide(GameObject gameObject, bool includeDescendants)
 {
     Undo.RecordObject(SceneVisibilityState.GetInstance(), "Set GameObject Hidden");
     SceneVisibilityState.SetGameObjectHidden(gameObject, true, includeDescendants);
     VisibilityChanged();
 }
Exemple #17
0
 public void TogglePicking(GameObject gameObject, bool includeDescendants)
 {
     Undo.RecordObject(SceneVisibilityState.GetInstance(), "Toggle Picking");
     SceneVisibilityState.SetGameObjectPickingDisabled(gameObject, !SceneVisibilityState.IsGameObjectPickingDisabled(gameObject), includeDescendants);
 }
Exemple #18
0
 public void Show(GameObject[] gameObjects, bool includeDescendants)
 {
     Undo.RecordObject(SceneVisibilityState.GetInstance(), "Show GameObjects");
     SceneVisibilityState.SetGameObjectsHidden(gameObjects, false, includeDescendants);
     VisibilityChanged();
 }
Exemple #19
0
 private static void EditorSceneManagerOnSceneSaved(Scene scene)
 {
     SceneVisibilityState.OnSceneSaved(scene);
 }