Constructors

Properties

height: number = 0

Height in pixels. Only for rectangle shaped buttons

offset: Vector2 = ...

X-axis and Y-axis offset

onClick: (() => void)

Function executed when the button's click

onPressed: (() => void)

Function executed when the button is pressed

pressed: boolean = false

TRUE if it's pressed

radius: number = 0

Radius in pixels. Only for circumference shaped buttons

The shape of the button

touchEnabled: boolean = true

Enables interaction with touch screens

width: number = 0

Width in pixels. Only for rectangle shaped buttons