I
I
IliaNeverov2020-08-20 16:06:18
Unity
IliaNeverov, 2020-08-20 16:06:18

How can I make it so that when a certain key is pressed, something happens?

Good day to all :) Please tell me how to make it so that when a certain key is "pressed" something happens? Language - c# engine - unity

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
twobomb, 2020-08-20
@IliaNeverov

Input.GetKeyUp

if (Input.GetKeyUp("space"))
        {
            print("Space key was released");
        }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question