Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetButton(string)

Returns the binary value of a button.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ClusterInputModule
Warning
Deprecated. This type is deprecated and will be removed in a future release.
public static bool GetButton(string name)

Parameters

name

Name of input to poll.

Returns

Type

Description

bool

Remarks

True for pressed, false otherwise.