Skip to content

Snap the Unity SceneView to common viewing directions with Blender-like hotkeys

License

Notifications You must be signed in to change notification settings

nowsprinting/blender-like-sceneview-hotkeys

Repository files navigation

Blender-like SceneView Hotkeys

Meta file check Test openupm BOOTH Ask DeepWiki

This Unity Editor extension allows you to select the viewing direction for a SceneView with the Blender -like hotkeys.

e.g. Numpad 1/3/7 as switch front/right/top view. Numpad 5 as toggle orthographic projection.

Click 日本語 for the Japanese page if you need it.

Features

Some of Blender's hotkeys Implement. See Documentation page for implemented hotkeys.

See Navigating - Blender Manual for all Blender's hotkeys.

Settings

If your keyboard is without a Numpad, open Preferences > Blender-like SceneView Hotkeys , and turn on Emulate Numpad.

However, the Unity Editor already assigned the 2 key. If you are using Unity 2019 or later, you can change the assignment with Shortcuts Manager.

Installation

  1. Open the Project Settings window (Editor > Project Settings) and select Package Manager tab (figure 1.)
  2. Click + button under the Scoped Registries and enter the following settings:
    1. Name: package.openupm.com
    2. URL: https://package.openupm.com
    3. Scope(s): com.nowsprinting
  3. Open the Package Manager window (Window > Package Manager) and select My Registries tab (figure 2.)
  4. Select Blender-like SceneView Hotkeys and click the Install button

Figure 1. Scoped Registries setting in Project Settings window

Figure 2. My Registries in Package Manager window

License

MIT License

How to contribute

Open an issue or create a pull request.

Be grateful if you could label the pull request as enhancement, bug, chore, and documentation. See PR Labeler settings for automatically labeling from the branch name.

How to development

Clone repo as a embedded package

Add this repository as a submodule to the Packages/ directory in your project.

Run the command below:

git submodule add git@github.com:nowsprinting/blender-like-sceneview-hotkeys.git Packages/com.nowsprinting.blender-like-sceneview-hotkeys

Run tests

Generate a temporary project and run tests on each Unity version from the command line.

make create_project
UNITY_VERSION=2019.4.40f1 make -k test

Release workflow

The release process is as follows:

  1. Run Actions > Create release pull request > Run workflow
  2. Merge created pull request

Then, will do the release process automatically by Release workflow. After tagging, OpenUPM retrieves the tag and updates it.

Caution

Do NOT manually operation the following operations:

  • Create a release tag
  • Publish draft releases

Caution

You must modify the package name to publish a forked package.