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