- Home /
Editor layout hotkeys?
The editor section of the Unity features pages seems to imply that one can swap between editor layouts using hotkeys, as quoted below:
Customizable Editor Layout
Choose from one of many built-in application arrangements, or create and save your own. Different tasks might benefit from different arrangements, so use easy hotkeys to switch arrangements as needed.
I'm aware that you can do this via the layout dropdown menu in the top-right of the editor, as well as via Window > Layouts. However, there are no keyboard shortcuts listed alongside the various layouts, as there are with most other menu items; relevant documentation does not seem to make mention of any hotkeys either.
Any help with locating these hotkeys would be greatly appreciated!
Answer by qJake · Jul 29, 2010 at 06:51 PM
Edit > Preferences > "Keys" Tab
Those are the keyboard shortcuts you can customize.
You can also write an editor script to handle a keyboard shortcut that does something else that you need, since the whole editor is scriptable.
That was going to be my next course of action; was just checking to make sure I didn't overlook something obvious! Thanks!
Is there a way to register custom entries in the "$$anonymous$$eys" tab? I know that I can register custom keys using the $$anonymous$$enuItem
attribute, but I would also like to allow customers to remap them if possible...
Answer by col000r · Mar 25, 2014 at 02:50 PM
The best solution I have found so far is this: I'm simply executing the menu-items that switch to the individual layouts. Place this script in the Editor folder and enter the names of the layouts you want to have shortcuts for...
using UnityEngine;
using UnityEditor;
public class LayoutShortCuts : EditorWindow {
[MenuItem("Window/LayoutShortcuts/1 %1", false, 999)]
static void Layout1() {
EditorApplication.ExecuteMenuItem("Window/Layouts/BLACKISH Default");
}
[MenuItem("Window/LayoutShortcuts/2 %2", false, 999)]
static void Layout2() {
EditorApplication.ExecuteMenuItem("Window/Layouts/BLACKISH Max Space");
}
}
2018 1.6f1 : Still Works like a Charm. Clean and Simple. Thank you very much.
Seems not work anymore, what a shame. Says something about conflict in key shortcut.
the script still works, you can either assign different shortcuts in the script (replace %1 and %2 with something else) or assign new keys in the new Shortcuts window (Edit/Shortcuts...) - there's even a section called "Binding Conflicts" that shows you everything that's bound to the same keys.
Answer by OllyNicholson · Aug 24, 2011 at 03:43 PM
Here is the list of default Unity Hotkeys (soon to be published in the documentation)
PC & Mac + downloadable PDF
http://blogs.unity3d.com/2011/08/24/unity-hotkeys-keyboard-shortcuts-in-unity/
Olly
TA@Unity
Your answer
![](https://koobas.hobune.stream/wayback/20220613070026im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Separator in custom Editor MenuItem 1 Answer
Inspector look changed 0 Answers
Temporarily disable F hotkey 0 Answers
Error while reading window layout 4 Answers
Hotkey to play animation 1 Answer