Answers for "press key run code unity c#"

C#
20

unity key detection

if (Input.GetKeyDown(KeyCode.Space))
        {
            print("space key was pressed");
        }
Posted by: Guest on January-17-2020
0

press key run code unity c#

if(Input.GetKey(KeyCode.space))
	{
  		print("Space key was pressed")
	}
Posted by: Guest on May-26-2020

C# Answers by Framework

Browse Popular Code Answers by Language