Answers for "unity show keyboard input"

C#
1

unity keyboard input

using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Space))
        {
            print("space key was pressed");
        }
    }
}
Posted by: Guest on April-14-2021
0

how to get keyboard input in unity

//https://docs.unity3d.com/ScriptReference/KeyCode.html - ALL KEYCODES
Posted by: Guest on February-11-2021

C# Answers by Framework

Browse Popular Code Answers by Language