Answers for "unity c# check if multiple keys are pressed"

C#
1

unity c# check if multiple keys are pressed

// Checks if W or D keys are have been pressed or being held down
if (Input.GetKey(KeyCode.W) && Input.GetKey(KeyCode.D))
{
	// do something...
}
Posted by: Guest on April-07-2021

Code answers related to "unity c# check if multiple keys are pressed"

C# Answers by Framework

Browse Popular Code Answers by Language