Constructor
new UIButton(posopt, sizeopt, textopt, coloropt)
Create a UIButton object
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
pos | Vector2 | <optional> | ||
size | Vector2 | <optional> | ||
text | string | <optional> | ||
color | Color | <optional> | uiSystem.defaultButtonColor |
- Source
Extends
- UIObject