GetButton and GetKey

Tutorial

·

Beginner

·

+10XP

·

5 mins

·

(2188)

Unity Technologies

GetButton and GetKey

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

Languages available:

1. GetButton and GetKey


KeyInput


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

ButtonInput


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Complete this tutorial