Answers for "input.getkeydown in unity"

C#
0

input.getkeydown in unity

using UnityEngine;
using System.Collecctions;

public class ExampleClass : MonoBehaviour
{
	void Update() 
    {
    	if (Input.GetKeyDown("space")) //Instead of `space` place the key you want
        	print("It works!");
    }
}
Posted by: Guest on August-21-2021

C# Answers by Framework

Browse Popular Code Answers by Language