Sinespace Client 2025.3.19431
Client-side scripting for Sinespace
|
Public Member Functions | |
void | OnClick (Closure callback) |
Invoke when a user clicks the button and releases it. | |
![]() | |
override void | Initialise (SScript runtime, object wrapper) |
![]() | |
void | ReportError (string error, bool fatal, UnityEngine.Object target=null) |
void | Initialise (SScript runtime, object wrapper) |
Properties | |
bool | Enabled [get, set] |
Whether the button component is Enabled or not. | |
bool | Interactable [get, set] |
Enable Interactable. | |
SColor | NormalColor [get, set] |
The normal color of the control. | |
SColor | HighlightedColor [get, set] |
The color of the control when it is highlighted. | |
SColor | PressedColor [get, set] |
The color of the control when it is pressed. | |
SColor | DisabledColor [get, set] |
The color of the control when it is disabled. | |
float | ColorMultiplier [get, set] |
This multiplies the tint color for each transition by its value. | |
![]() | |
SGameObject | GameObject [get] |
Return the GameObject which component added. | |
![]() | |
override bool | Alive [get] |
Return if the component is alive. | |
![]() | |
T | _wrap [get] |
![]() | |
virtual bool | Alive [get] |
DynValue | CachedData [get, set] |
Additional Inherited Members | |
![]() | |
void | Initialise (SScript runtime) |
void SineSpace.Scripting.Components.SUIButton.OnClick | ( | Closure | callback | ) |
Invoke when a user clicks the button and releases it.
callback | the script function named "callback" |
|
getset |
This multiplies the tint color for each transition by its value.
|
getset |
The color of the control when it is disabled.
|
getset |
Whether the button component is Enabled or not.
|
getset |
The color of the control when it is highlighted.
|
getset |
Enable Interactable.
|
getset |
The normal color of the control.
|
getset |
The color of the control when it is pressed.