Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 515Dastan · Apr 09, 2015 at 07:47 PM · editorhotkeys

How to reset default hotkeys for editor?

This may seem a bit crazy but somehow (and I don't know how) I "accidentally" set a number of hotkeys to add a specific scripts...! for example, when I have one of my game objects selected and I press (shift+d) script number 1 gets assigned as one of its components.

Now the main problem is that even when I'm renaming my objects and other stuff (shift+d) still adds the component and doesn't type "D" (capital d) as it's supposed to! (I also have this problem with "shift+N" and "shift+O" keys)

in Edit>Preferences under the "Keys" tab I clicked Use Defaults but it didn't solve the problem.

can any one help me with this please...

Comment
Add comment · Show 2
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 roojerry · Apr 09, 2015 at 08:45 PM 0
Share

How did you go about setting up these hotkeys?

avatar image 515Dastan · Apr 10, 2015 at 06:50 AM 0
Share

that's my problem! I DON'T $$anonymous$$NOW!!! somehow it just happened...! I know it sound kinda dumb, but it's true...

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by DoTA_KAMIKADzE · Apr 09, 2015 at 07:57 PM

Well you or some asset code that you use does it by using MenuItem. You need to find it out.

Comment
Add comment · Show 3 · 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
avatar image 515Dastan · Apr 09, 2015 at 08:40 PM 0
Share

I'm building everything from scratch so there isn't any special asset that may cause this, I'm not using $$anonymous$$enuItem but I checked my codes anyway just to make sure and didn't find $$anonymous$$enuItem in any of them...

Thanks for the heads up, but is there anything else that might be messing with Shortcut $$anonymous$$eys...?

avatar image DoTA_KAMIKADzE · Apr 09, 2015 at 09:34 PM 0
Share

Could you go through all $$anonymous$$enu items in your Unity window and find out if there is any with your problematic shortcut keys? (like "Shift+D")

If you find one post here that menu item path (e.g. Ctrl+N -> File=>New Scene)

avatar image 515Dastan · Apr 10, 2015 at 07:27 AM 0
Share

Problem SO$$anonymous$$EHOW solved!!!

I have explained it a comment below how it was solved, can you please read it and tell me if you have any idea on how it work? thanks...

avatar image
0

Answer by samtperrin · Apr 09, 2015 at 08:46 PM

You could try deleting your EditorPrefs? I believe they are saved in the registry like PlayerPrefs - HKCU\Software\Unity Technologies\UnityEditor

Or you can run EditorPrefs.DeleteAll() - http://docs.unity3d.com/ScriptReference/EditorPrefs.DeleteAll.html

Use this at your own risk - I have not tested it.

Comment
Add comment · Show 2 · 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
avatar image 515Dastan · Apr 10, 2015 at 07:00 AM 0
Share

this sounds risky, I may use it as a last resort, thanks...

avatar image samtperrin · Apr 10, 2015 at 07:03 AM 0
Share

I think it will reset the editor to its default state. It 'should not' break anything.

avatar image
0

Answer by 515Dastan · Apr 10, 2015 at 07:27 AM

!!!PROBLEM SOLVED!!!

Ok I don't know how this actually works, here's the thing,

I had named a set of my scripts like BTN_Exit, I used BTN as a short form of "Button" to manage the scripts used for controlling buttons, I also had some scripts with names like BTN_Ready_Play

I checked and notice all my keys which where not typing when I hold shift are the ones that came right after underscore,

I renamed my script and removed the underscores and also unnecessary Capital letters, so for example BTN_Exit now is BtnExit

this solved the problem but I'm interested in knowing how this works and why it caused something like this...!

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

21 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

Related Questions

Prevent unity hotkeys in editor 0 Answers

Unity Editor hotkeys 2 Answers

Disable certain hotkeys in the editor? 0 Answers

Hotkey for play (ctrl + P) not working properly 0 Answers

Custom hot keys manager 1 Answer


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