UIButton Class

Interactive button UI component.

public class UIButton : Brine2D.UI.IUIComponent

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.