Editor tool to deselect all in Hierarchy and Project views by pressing a button (e.g. Alt + d).

using UnityEditor;

public static class DeselectAll {
    [MenuItem("Edit/Deselect All &d", false, -101)]
    static void DeselectEverything() {
        Selection.activeGameObject = null;
    }
}

 


Log In:




Comments (0)