기술 자료

Unity Engine

Unity Engine

GetButton(string)

Returns the binary value of a button.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ClusterInputModule
경고
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.