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
5
Question by Demigiant · Nov 03, 2011 at 06:27 PM · inputinput manager

Rearranging input order in Input Manager

Hello :)

I created the inputs for a game, but I'd like them to be neatly ordered (I had to add a new one, and it was automatically put below all others, while instead it should logically appear on top). Seeing that users will see keys in the same order as the Input Manager shows them (if I use the default Unity configuration panel) I believe this is a very important thing.

I tried dragging an input key, but to no avail. Any suggestions? It seems impossible that it can't be done.

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 Demigiant · Dec 01, 2011 at 03:46 PM 0
Share

(sorry for bumping this, but I find it really important - and sadly I can't set bounties anymore with this new system)

2 Replies

· Add your reply
  • Sort: 
avatar image
17
Best Answer

Answer by fingersbleeding · Aug 14, 2013 at 02:41 PM

With Unity 4.2

Go to Edit > Project Settings > Editor.

Where you see Asset Serialization, choose Force Text.

If it was "Mixed" or "Force Binary" before, it will run through converting your .asset files from binary to text.

Then in your filesystem browse to your project folder > Project Settings > InputManager.asset.

Open this up in a text editor. You should see each control defined like this:

  • serializedVersion: 3

    m_Name: Horizontal

    descriptiveName:

    descriptiveNegativeName:

    negativeButton:

    positiveButton:

    altNegativeButton:

    altPositiveButton:

    gravity: 3

    dead: .00100000005

    sensitivity: 3

    snap: 1

    invert: 0

    type: 2

    axis: 0

    joyNum: 1

You can rearrange a control by copy/paste everything between the "- serializedVersion:" and "joyNum:" lines. I would make sure to keep spacing correct. When you return to Unity, they should be in the desired order. Test your project to make sure it runs as expected.

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 masterchafe · Jan 06, 2014 at 08:04 AM 1
Share

this needs to be chosen as the new answer to this question as this is a perfect solution, so glad they added this ability, my input list is now much more easily created/edited/rearranged

Cheers fingers!

avatar image Demigiant · Feb 15, 2014 at 02:07 AM 0
Share

Sorry for accepting this new answer so late, but I never got any notification about it. Thanks for the heads up

avatar image
2

Answer by Eric5h5 · Dec 01, 2011 at 10:05 PM

There isn't really a way to reorder them directly, but you can duplicate an existing input, which will cause the duplicate to appear right below the original. Then you can edit the duplicate to have the info that you want for the new control. In other words, if you had:

 Up
 Left
 Right

and you wanted Down to appear right after Up, you'd duplicate Up, and change the duplicate to Down.

Comment
Add comment · Show 5 · 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 Demigiant · Dec 01, 2011 at 10:28 PM 0
Share

Oh, sigh, can't believe it can't be done. This is a mess mostly because I have a LOT of inputs, and I add/change them the more I go on. But thanks a lot for the trick: I didn't realize you could duplicate the inputs, and I'll use this as a workaround.

avatar image nventimiglia · Mar 25, 2013 at 05:59 PM 0
Share

Yeah, they should of used X$$anonymous$$L or even Json.

avatar image ifisch · Jul 02, 2013 at 11:24 PM 0
Share

Note: In order to duplicate a member of the array, you have to use the Edit -> Duplicate option from the top toolbar of the program.

Not super intuitive.

avatar image LeetRooster · Aug 04, 2013 at 06:59 PM 0
Share

The input manager UI is kind of primitive, I hope unity does some work here in the future. Or maybe people are using external tools to modify this stuff? Perhaps it just exports an X$$anonymous$$L file or something and people just edit that. Seems like it would be easier to just edit a text file rather than use this UI.

avatar image Cleroth · Aug 04, 2013 at 07:19 PM 0
Share

I reckon you can probably reorder it with 4.2 by manually editing the Input$$anonymous$$anager.asset file, since it's now text-based, ins$$anonymous$$d of binary.

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

9 People are following this question.

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

Related Questions

Is there a way to detect a change in Control Scheme with the new Input System? 1 Answer

Input Debugger has duplicated devices and it is overriding game input actions 0 Answers

Adding extra axes to the input manager programaticly 3 Answers

Get Array of all Input Manager Axes 2 Answers

Get axis input only from certain keys 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