Single-file, drop-in Unity Editor script to give you Blender-like transformation hotkeys and functionality!
- Download
BlenderEditorKeys.cs
and place it in your project'sAssets/Editor
folder- Create a new empty
Editor
folder if one doesn't already exist
- Create a new empty
- That's it! The script should automatically run when the editor is open
Recommended key bindings in Edit > Shortcuts
:
- Rebind your
Tools/Scale
key as this script will override the default - Rebind your
Delete Current Selection
key toX
to match Blender
G
rab objects
R
otate objects
S
cale objects
Move the mouse to transform
Left Click
or Enter
to confirm
Right Click
or Escape
to cancel
Hit X
, Y
, or Z
while transforming an object to lock the transformation to a single axis
Hit Shift
in combination with X
, Y
, or Z
to lock transformation to the other two axis
Simply start typing in a number while transforming an object to transform it by an exact amount
Backspace and decimal keys work too!
Hit Shift
in combination with G
, R
, or S
to reset that transform to its default
This script respects the Pivot and Snapping settings at the top left of the Unity editor
Please refer to the Unity docs on how to change these settings
You can also hold Ctrl
for temporary snapping
- Editor 'Heirarchy' or 'Scene View' windows must be the active UI element in order for hotkeys to register
- If you press a hotkey and nothing happens, click inside some empty space in either of these panels first
- Reset transform modifier key must be
Shift
as the Unity editor seems to override and consumeAlt
keypresses - Unity doesn't support scaling along global axis (skewing) like Blender does (not even the Unity gizmo will do this)
- Vertex/surface snapping and look-at rotation are not supported (too complex, use the Unity gizmo for these)
- If compile times increase after installing this, make sure it's in your
Assets/Editor
folder and not justAssets
!