SUIButton

Index

Functions Index

Function Name

void OnClick (Closure callback)

Properties Index

Property Name

bool Enabled get set

bool Interactable get set

SColor NormalColor get set

SColor HighlightedColor get set

SColor PressedColor get set

SColor DisabledColor get set

float ColorMultiplier get set

SGameObject GameObject get

Functions

OnClick

void OnClick (Closure callback)

Invoke when a user clicks the button and releases it.

Parameter
Type
Description

Properties

Enabled

bool Enabled get set

Whether the button component is Enabled.

Interactable

bool Interactable get set

Enable Interactable if you want this button to accept input.

NormalColor

SColor NormalColor get set

The normal color of the control.

HighlightedColor

SColor HighlightedColor get set

The color of the control when it is highlighted.

PressedColor

SColor PressedColor get set

The color of the control when it is pressed.

DisabledColor

SColor DisabledColor get set

The color of the control when it is disabled.

ColorMultiplier

float ColorMultiplier get set

This multiplies the tint color for each transition by its value. With this you can create colors greater than 1 to brighten the colors on graphic elements whose base color is less than white.

GameObject

SGameObject GameObject get

Property Description

Last updated

Was this helpful?