SUIScrollbar
ClientComponents
On this classOnValueChanged
Members 10
| Function | OnValueChanged | Handling for when the scrollbar value is changed. |
| Property | Size | The size of the scrollbar handle where 1 means it fills the entire scrollbar. |
| Property | Value | The current value of the scrollbar, between 0 and 1. |
| Property | NumberOfSteps | – |
| Property | NormalColor | – |
| Property | HighlightedColor | – |
| Property | PressedColor | – |
| Property | DisabledColor | – |
| Property | ColorMultiplier | – |
| Property | GameObject | – |
OnValueChanged
void OnValueChanged(Closure callback)
Handling for when the scrollbar value is changed.
Parameters
| Name | Type | Default |
|---|---|---|
| callback | Closure | – |
Returns
void
Example
Lua
function OCV()
--
end
Space.Host.ExecutingObject.UIScrollbar.OnValueChanged(OCV)
Properties
Size
float Size {get; set; }
The size of the scrollbar handle where 1 means it fills the entire scrollbar.
Example
Lua
Space.Host.ExecutingObject.UIScrollbar.Size = 0.1
Value
float Value {get; set; }
The current value of the scrollbar, between 0 and 1.
Example
Lua
Space.Host.ExecutingObject.UIScrollbar.Value = 0.5
NumberOfSteps
int NumberOfSteps {get; set; }
Example
Lua
Space.Host.ExecutingObject.UIScrollbar.NumberOfSteps = 2
NormalColor
Example
Lua
Space.Host.ExecutingObject.UIScrollbar.NormalColor = Color.Red
HighlightedColor
Example
Lua
Space.Host.ExecutingObject.UIScrollbar.HighlightedColor = Color.Red
PressedColor
Example
Lua
Space.Host.ExecutingObject.UIScrollbar.PressedColor = Color.Red
DisabledColor
Example
Lua
Space.Host.ExecutingObject.UIScrollbar.DisabledColor = Color.Red
ColorMultiplier
float ColorMultiplier {get; set; }
Example
Lua
Space.Host.ExecutingObject.UIScrollbar.ColorMultiplier = Color.Red
GameObjectRead only
Example
Lua
theGameObject = Space.Host.ExecutingObject.UIScrollbar.GameObject



