Y
Y
Yura Mailler2021-01-16 12:11:41
Unity
Yura Mailler, 2021-01-16 12:11:41

How to find out if the player is holding the button?

Hello! How to find out if the player is holding his finger on the screen and the same current on the computer using the keys? Type while the finger is not wrung out, we perform a certain action.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daaeev, 2021-01-16
@Daaeev

On a computer - Input.GetKey(KeyCode.X)
On a smartphone - like, the OnMouseOver method

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question