UIButton Class
Definition
Namespace: Brine2D.UI
Interactive button UI component.
Inheritance System.Object → UIButton
Implements IUIComponent
| Properties | |
|---|---|
| HoverColor | Hover state color. |
| NormalColor | Normal state color. |
| PressedColor | Pressed state color. |
| Text | Button text. |
| TextColor | Text color. |
| Methods | |
|---|---|
| Click() | Called by UICanvas when button is clicked. |
| SetHovered\(bool\) | Called by UICanvas when mouse hovers over button. |
| SetPressed\(bool\) | Called by UICanvas when mouse is pressed on button. |
| Events | |
|---|---|
| OnClick | Event fired when button is clicked. |