Answers for "unity keyboard"

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

C# Answers by Framework

Browse Popular Code Answers by Language