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