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 Owen-Reynolds · Jul 30, 2014 at 05:37 PM · inspector

Using keys to change Inspector enums

In general, Unity does a great job supporting keyboard-only to use the Inspector, including for scripts. Tab and arrow keys work the usual way; can zoom through an array, use leftRight arrow to expand/close items ... never have to touch the mouse.

But, when I tab or arrow to an enum, is there any way to use keys to open it, or cycle through items?

I'm thinking of a user-coded enum, but I guess it would be the same for a built-in, like TextAlign.

Enter or L/R arrows, maybe with some modifiers, seem like candidates (but all I can do with those is minimize my windows. But I'm using a Mac, and the modifier keys still feel weird.) I assume a custom Inspector script could do something, but I'm thinking about those cases where the standard Inspector is fine, and you just wanted to toss in an enum.

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 $$anonymous$$ · Jul 30, 2014 at 06:57 PM 0
Share

You mean convert enum variable to int and use it to iterate through it?

avatar image Owen-Reynolds · Jul 30, 2014 at 08:53 PM 0
Share

Not a coding question. I'm asking for an Inspector shortcut, to avoid having to click on Inspector enums.

For example, with an Inspector Vector3, you can open/fold by clicking the little arrow; but you can also use right and left arrow keys, without having to reach for the mouse.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Owen-Reynolds · Feb 24, 2017 at 09:21 PM

Arrow over to the enum in the Inspector and press ENTER. The enum dropdown pops up. You can then up/down arrow through it as normal, and close with another ENTER.

Allows 100% use of keys-only to navigate and change Inspector enums.

I'm 99.9% sure this was not the case back when I asked this (since I specifically mentioned the Enter key,) so nice job adding this Unity team.

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

23 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

Related Questions

(Inspector) Change Header Color 0 Answers

Custom Display for system.object Editor 1 Answer

Why inpector keeps methods assigned when changed from public to private 2 Answers

Select a type from the inspector 0 Answers

Loss of GO selection 2 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