Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetButtonDown(string)

Interface to Input.GetButtonDown. Can be overridden to provide custom input instead of using the Input class.
Read time 1 minuteLast updated 9 days ago

Definition

Warning
Deprecated. EventSystem no longer supports input override for legacy input. Install Input System package for full input binding functionality.
public virtual bool GetButtonDown(string buttonName)

Parameters

buttonName

Button name to get

Returns

Type

Description

boolReturns true during the frame the user pressed down the virtual button identified by buttonName.