Class Button2D

Class Hierarchy

Use the Button 2D node to create a 2D UI control that the user can interact with through clicking, tapping, or pressing a key.

Inherits properties and message types from Button2DMetadata.

Synopsis

Methods
create()

Creates an instance of Button2D

Button2D:create(objectName)

Creates an instance of Button2D.

Parameters
objectName (string)

The name of the object.