Unity Learn home
View Tutorial Content

GetButton and GetKey

Tutorial
Beginner
+10 XP
5 Mins
(2114)
Overview
Summary
This tutorial demonstrates how to get a button or a key for input in a Unity project, and how these axes behave or can be modified with the Unity Input manager.
Part of: Beginner Scripting project
Previous Tutorial: Destroy
Next Tutorial: GetAxis
Select your Unity version
Last updated: November 16, 2023
2019.3
2019.2
2019.1
2018.4
2018.3
2018.2
2018.1
2017.4
2017.3
2017.2
2017.1
5.x
4.x
Language
English
Also included in
GetButton and GetKey