Last active
October 23, 2021 12:04
-
-
Save Democide/aa9654d742394f2920beaa94cece3cbd to your computer and use it in GitHub Desktop.
Revisions
-
Democide revised this gist
Aug 25, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ public static class ShortcutToggleObjectActivation { // LEFT ALT + LEFT SHIFT + A to toggle active state of selected GameObjects [MenuItem("Shortcuts/Toggle Selected GameObjects Active #&a")] static void SaveGameOpenFolder() { -
Democide revised this gist
Aug 25, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ public static class ShortcutToggleObjectActivation { // ALT + SHIFT + A to toggle active state of selected GameObjects [MenuItem("Shortcuts/Toggle Selected GameObjects Active #&a")] static void SaveGameOpenFolder() { -
Democide revised this gist
Aug 25, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ public static class ShortcutToggleObjectActivation { // ALT + L-SHIFT + A to toggle active state of selected GameObjects [MenuItem("Shortcuts/Toggle Selected GameObjects Active #&a")] static void SaveGameOpenFolder() { -
Democide revised this gist
Aug 25, 2017 . 1 changed file with 5 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,15 +4,16 @@ public static class ShortcutToggleObjectActivation { // CTRL + L-SHIFT + A to toggle active state of selected GameObjects [MenuItem("Shortcuts/Toggle Selected GameObjects Active #&a")] static void SaveGameOpenFolder() { if (Selection.gameObjects.Length > 1) { foreach (var item in Selection.gameObjects) { item.SetActive(!item.activeSelf); } } else if (Selection.activeGameObject != null) { Selection.activeGameObject.SetActive(!Selection.activeGameObject.activeSelf); } } -
Democide created this gist
Aug 25, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ using UnityEngine; using System.Collections; using UnityEditor; public static class ShortcutToggleObjectActivation { [MenuItem("Shortcuts/Toggle Selected GameObjects Active #&a")] static void SaveGameOpenFolder() { if (Selection.gameObjects.Length > 1) { foreach (var item in Selection.gameObjects) { item.SetActive(!item.activeSelf); } } else if (Selection.activeGameObject != null) { Selection.activeGameObject.SetActive(!Selection.activeGameObject.activeSelf); } } }