Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
private readonly Array keyCodes = Enum.GetValues(typeof(KeyCode));
void Update()
{
if (Input.anyKeyDown)
{
foreach (KeyCode keyCode in keyCodes)
{
if (Input.GetKey(keyCode)) {
Debug.Log("KeyCode down: " + keyCode);
}
}
}
}
Update()
{
if(Input.GetKeyDown(KeyCode.Название клавиши)
{
//Сделать что то на определенную клавишу
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question