Skip to main content
←API Reference ←NianticSpatial.NSDK.AR ←Input

GetButton

Returns true while the virtual button identified by buttonName is held down.

Declaration​

public static bool GetButton(string buttonName)

Summary​

Returns true while the virtual button identified by buttonName is held down.

Returns​

True when an axis has been pressed and not released.

Parameters​

NameTypeSummary
buttonNamestring
The name of the button such as Jump.