Answers for "how to chek if a key is down in unity"

C#
7

if get key down unity

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour
{
    void Update()
    {
        if (Input.GetKeyDown("space"))
        {
            print("space key was pressed");
        }
    }
}
Posted by: Guest on January-25-2020

Code answers related to "how to chek if a key is down in unity"

C# Answers by Framework

Browse Popular Code Answers by Language