public static void DeselectAllObjectsInLayer(int objectLayer) { List <GameObject> allObjectsInLayer = ObjectLayerDatabase.Get().GetAllGameObjectsInLayer(objectLayer); ObjectSelection.Get().RemoveGameObjectCollectionFromSelection(allObjectsInLayer); ObjectSelection.Get().ObjectSelectionGizmos.OnObjectSelectionUpdated(); }
private void RenderMakeAllLayersDynamicButton() { if (GUILayout.Button(GetContentForMakeAllLayersDynamicButton(), GUILayout.Width(EditorGUILayoutEx.PreferedActionButtonWidth * _actionButtonScale))) { ObjectLayerDatabase.Get().MakeAllLayersDynamic(); } }
private void RenderAssignSelectedObjectsToActiveLayerButton() { if (GUILayout.Button(GetContentForAssignSelectedObjectsToActiveLayerButton(), GUILayout.Width(EditorGUILayoutEx.PreferedActionButtonWidth * _actionButtonScale))) { ObjectLayerDatabase.Get().AssignObjectsToLayer(ObjectSelection.Get().GetAllSelectedGameObjects(), _database.ActiveLayer); } }
private void RenderMakeActiveLayerStatic() { if (GUILayout.Button(GetContentForMakeActiveLayerStatic(), GUILayout.Width(EditorGUILayoutEx.PreferedActionButtonWidth * _actionButtonScale))) { ObjectLayerDatabase.Get().MakeLayerStatic(_database.ActiveLayer); } }
public static void AppendAllObjectsInLayerToSelection(int objectLayer) { List <GameObject> allObjectsInLayer = ObjectLayerDatabase.Get().GetAllGameObjectsInLayer(objectLayer); ObjectSelection objectSelection = ObjectSelection.Get(); objectSelection.AddGameObjectCollectionToSelection(allObjectsInLayer); ObjectSelection.Get().ObjectSelectionGizmos.OnObjectSelectionUpdated(); }
public static void DeselectAllObjectsInAllLayers() { List <int> allLayers = ObjectLayerDatabase.Get().GetAllObjectLayers(); foreach (int objectLayer in allLayers) { DeselectAllObjectsInLayer(objectLayer); } }
public static void SelectAllObjectsInLayer(int objectLayer) { List <GameObject> allObjectsInLayer = ObjectLayerDatabase.Get().GetAllGameObjectsInLayer(objectLayer); ObjectSelection objectSelection = ObjectSelection.Get(); objectSelection.Clear(); objectSelection.AddGameObjectCollectionToSelection(allObjectsInLayer); ObjectSelection.Get().ObjectSelectionTransformGizmoSystem.OnObjectSelectionUpdated(); }
public static void SelectAllObjectsInAllLayers() { ObjectSelection objectSelection = ObjectSelection.Get(); objectSelection.Clear(); List <int> allLayers = ObjectLayerDatabase.Get().GetAllObjectLayers(); foreach (int objectLayer in allLayers) { objectSelection.AddGameObjectCollectionToSelection(ObjectLayerDatabase.Get().GetAllGameObjectsInLayer(objectLayer)); } ObjectSelection.Get().ObjectSelectionGizmos.OnObjectSelectionUpdated(); }
public static void AppendAllObjectsInActiveLayerToSelection() { AppendAllObjectsInLayerToSelection(ObjectLayerDatabase.Get().ActiveLayer); }
public static void DeselectAllObjectsInActiveLayer() { DeselectAllObjectsInLayer(ObjectLayerDatabase.Get().ActiveLayer); }
public static void AssignSelectedObjectsToLayer(int objectLayer) { List <GameObject> allSelectedGameObjects = ObjectSelection.Get().GetAllSelectedGameObjects(); ObjectLayerDatabase.Get().AssignObjectsToLayer(allSelectedGameObjects, objectLayer); }
private void RenderContentInScrollView() { EditorGUILabelWidth.Push(EditorGUILayoutEx.PreferedEditorWindowLabelWidth); ObjectLayerDatabase.Get().View.Render(); EditorGUILabelWidth.Pop(); }
public static void EraseAllGameObjectsInLayer(int objectLayer) { List <GameObject> allGameObjectsInLayer = ObjectLayerDatabase.Get().GetAllGameObjectsInLayer(objectLayer); ObjectErase.EraseGameObjectCollection(allGameObjectsInLayer); }
public static void EraseGameObjectsInAllLayers() { List <GameObject> allGameObjectsInAllLayers = ObjectLayerDatabase.Get().GetAllGameObjectsInAllLayers(); ObjectErase.EraseGameObjectCollection(allGameObjectsInAllLayers); }