B
B
BadCats2017-08-10 22:35:03
C++ / C#
BadCats, 2017-08-10 22:35:03

Error in input - meneger in unity?

if (Input.GetButtonDown("w"))
    {
        gb.transform.position = Vector3.forward * Time.deltaTime;
    };

    if (Input.GetKeyDown("s"))
    {
        gb.transform.position = -Vector3.forward * Time.deltaTime;
    };

fd64c0c4a49847acbc415c6b8436b31b.JPG
ArgumentException: Input Button w is not setup. To change the input settings use: Edit -> Project Settings -> Input CubeScript.Update () (at Assets/scripts/CubeScript.cs:14)

but after all in the inspector they are appointed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2017-08-10
@BadCats

If I remember correctly:
You have a Horizontal key assigned to which w and s are bound. You need to get two more keys - change size to 3 at the top, name them corresponding to w and s (although you can give any names), and then everything will work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question