GitXplorerGitXplorer
k

Unity-BlenderEditorKeys

public
4 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
c8a5e380df373ef6ab8081d2f6e411b6196f693c

Clear local transforms with hotkeys

committed 3 years ago
Unverified
f4948e13972d98a267464e2b133c956f159c98b9

Update README known issues

committed 4 years ago
Unverified
a851c7f55ca67a20e17d0a697932d0fc54252369

Fix translation offset when using exact numbers

committed 4 years ago
Unverified
8007ec963c9cce54113a7b2971b4ae9c29e8c7e7

Refactor & optimize SceneGUI and HandleKeys

committed 4 years ago
Unverified
38a1183b61bb1f1387b892645a93ccfd91300f45

Only listen for key events when transforming

committed 4 years ago
Unverified
fa769dbb7c1bbdfb98712e996fb9c8e23ebc0320

Update README to clarify install path

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!