3
\$\begingroup\$

How can I change the default key for walking with the player in Unity. At this moment I can do this with A, W, D and S (or something). But because I work with an azerty keyboard, I'll change it to Z, Q, S and D. How can I do this (only for the game)?

\$\endgroup\$
2
  • \$\begingroup\$ Do you know how to use the Input Manager? Or are you looking for a way to do this programatically/to change keyboard layouts at runtime? \$\endgroup\$
    – DMGregory
    Commented Dec 30, 2015 at 16:23
  • \$\begingroup\$ @DMGregory: Input manager is good, but I've already found it by an answer from Alexandr Skornyakov. \$\endgroup\$ Commented Dec 30, 2015 at 17:13

2 Answers 2

3
\$\begingroup\$

In the editor choose Edit → Project Settings → Input and change there the size of array or just change the values.

\$\endgroup\$
2
\$\begingroup\$

To switch to AZERTY keyboard:

Input Manager

Unity -> Edit -> Project Settings -> Input Manager

  • Horizontal: "q" instead of "a"
  • Vertical: "z" instead of "w"

Shortcuts

  • Unity -> Edit -> Shortcuts -> 3D Viewport: choose Forward Z, Left Q, Down A
\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .