Answers for "unity key pressed multiple"

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

C# Answers by Framework

Browse Popular Code Answers by Language