Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by sand_lantern · Sep 28, 2017 at 06:03 PM · hotkeys

Remap "Redo" hotkey to Ctrl+Shift+Z in Unity 2017.1.1f1

Hi all, I would like to use a more reasonable redo hotkey in Unity that matches all other applications I use, as well as a hotkey my hand can more comfortably reach. It appears there isn't some way to actually do this?

Is there some hack or anything I can do to not have to relearn a new muscle memory and stretch way out for an action that should be easy to do? Frankly, the fact that I can't remap all my hotkeys, but only some, in Unity is fairly distressing to me in the first place.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image FortisVenaliter · Sep 28, 2017 at 08:37 PM 0
Share

...Not that I'm aware of...

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by ebonyfanta13 · Jun 28, 2021 at 11:22 AM

Hi, @sand_lantern! I know this post is old and I'm not sure if you already resolved this issue, but I found a solution and wanted to help those who may have this same problem (including me).


To add hotkeys in Unity (at least for version 2017.1.1f1), you need to create a C# script, add the UnityEditor namespace at the top of the script, create a MenuItem with the name of the action and its relative hotkey (optional), and create a function of the actions that you want performed for your new hotkey.


For example, I created a short script to add an additional hotkey to redo actions in Unity (Note: I use Microsoft Visual Studio instead of MonoDevelop):

 using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
 using UnityEditor; // 1) Add UnityEditor namespace
 
 /// <summary>
 /// Adds hotkeys to Unity Editor
 /// </summary>
 public class ExtendedHotkeys : ScriptableObject
 {
     /// <summary>
     /// Redo with SHIFT+CTRL+Z
     /// </summary>
     [MenuItem("Edit/Redo #%z")] // 2) Create MenuItem with its menu location, name, and hotkey (optional)
     static void Redo() // 3) Create the function to execute when performing the hotkey
     {
         Undo.PerformRedo();
     }
 }

Copy and paste the code into a C# script in Unity (preferrably named ExtendedHotkeys) and save it in Assets/Editor. Then check the Edit tab in Unity to see if you now have a new action called Redo at the bottom of the menu and if its hotkey is SHIFT+CTRL+Z. Now you can press SHIFT+CTRL+Z (or whatever hotkey you decide to change it to) to redo!


Here is the Unity Scripting API link referring to the MenuItem class. I hope this was helpful.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

97 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Placing items on terrain in the editor 3 Answers

Why can't you make a hotkey be a single letter with no modifications? 0 Answers

what is hotkey for open all selected groups and its sub objects 1 Answer

How to forbidden hotkeys in playmode? I want to use Ctrl+S in my game. 1 Answer

How to avoid hotkey conflicts with unity editor 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges