Breakroom is now Sinewave Campus. Book a meeting

SUIScrollbar

ClientComponents
On this classOnValueChanged
  1. OnValueChanged
  2. Properties
  3. Size
  4. Value
  5. NumberOfSteps
  6. NormalColor
  7. HighlightedColor
  8. PressedColor
  9. DisabledColor
  10. ColorMultiplier
  11. GameObject
Members 10
FunctionOnValueChangedHandling for when the scrollbar value is changed.
PropertySizeThe size of the scrollbar handle where 1 means it fills the entire scrollbar.
PropertyValueThe current value of the scrollbar, between 0 and 1.
PropertyNumberOfSteps–
PropertyNormalColor–
PropertyHighlightedColor–
PropertyPressedColor–
PropertyDisabledColor–
PropertyColorMultiplier–
PropertyGameObject–

OnValueChanged​

void OnValueChanged(Closure callback)

Handling for when the scrollbar value is changed.

Parameters

NameTypeDefault
callbackClosure–

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​

SColor NormalColor {get; set; }

Example

Lua
Space.Host.ExecutingObject.UIScrollbar.NormalColor = Color.Red

HighlightedColor​

SColor HighlightedColor {get; set; }

Example

Lua
Space.Host.ExecutingObject.UIScrollbar.HighlightedColor = Color.Red

PressedColor​

SColor PressedColor {get; set; }

Example

Lua
Space.Host.ExecutingObject.UIScrollbar.PressedColor = Color.Red

DisabledColor​

SColor DisabledColor {get; set; }

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​

SGameObject GameObject {get; }

Example

Lua
theGameObject = Space.Host.ExecutingObject.UIScrollbar.GameObject