(Created page with "A control that executes code in response to user interactions. =Members= {{ScriptFunction|void|OnClick|(Closure callback);|Invoke when a user clicks the button and releases...") |
|||
Line 46: | Line 46: | ||
}} | }} | ||
− | {{ScriptFunction| | + | {{ScriptFunction|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.|5=local button=Space.Host.GetReference("Button").UIButton<br> |
''--add Button to object references.''<br> | ''--add Button to object references.''<br> | ||
Space.Log(button.ColorMultiplier)<br> | Space.Log(button.ColorMultiplier)<br> |
A control that executes code in response to user interactions.
Invoke when a user clicks the button and releases it.
--add Button to object references.
function Click()
button.OnClick(function ()
Space.Log("Hello Lua!")
button.end)
Whether the button component is Enabled or not.
--add Button to object references.
Space.Log(button.Enabled)
Enable Interactable if you want this button to accept input.
--add Button to object references.
Space.Log(button.Interactable)
The normal color of the control.
--add Button to object references.
The color of the control when it is highlighted.
--add Button to object references.
The color of the control when it is pressed.
--add Button to object references.
The color of the control when it is disabled.
--add Button to object references.
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.
--add Button to object references.
Space.Log(button.ColorMultiplier)
|