GitXplorerGitXplorer
k

Unity-BlenderEditorKeys

public
4 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
119eff9bcbcb22654cb63b7d43078befb222749d

Only execute script in edit mode

committed 4 years ago
Unverified
8e0e1e240eaff9bbbdec151921e247297e0d9d4d

Exclude script from builds

committed 4 years ago
Unverified
70a6c2f9a83dbbdd94e3b09a67dde96cbe691d82

Add a little file header

committed 4 years ago
Unverified
473a296dee24222797263667fcc1f2b7944ef28f

Update README

committed 4 years ago
Unverified
e4396e472317f2190bd94bb26a4a60af6cefd2b3

Add README

committed 4 years ago
Unverified
98f3b32d15c313231973b41fe061ea2d69331fd8

Fix local axis pivot rotation

committed 4 years ago

README

The README file for this repository.

BlenderEditorKeys

Single-file, drop-in Unity Editor script to give you Blender-like transformation hotkeys and functionality!

Installation

  1. Download BlenderEditorKeys.cs and place it in your project's Assets/Editor folder
    • Create a new empty Editor folder if one doesn't already exist
  2. 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 to X to match Blender

Usage

Transforming objects

Grab objects
Rotate objects
Scale objects

Move the mouse to transform

Left Click or Enter to confirm
Right Click or Escape to cancel

Locking transformation axis

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

Transforming by an exact number

Simply start typing in a number while transforming an object to transform it by an exact amount
Backspace and decimal keys work too!

Reset transforms

Hit Shift in combination with G, R, or S to reset that transform to its default

Pivots & Snapping

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

Known Issues

  • 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 consume Alt 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 just Assets!