Slider UI element
Called when the value is changed by a player
Return the maximum slider value
Return the minimum slider value
Return the game object that this UI element is attached to. Returns undefined if the element isn't attached to a game object.
Return the widget that contains this widget, for example a border that wraps a check box. Returns undefined if this object has no parent.
Return the slider step size
Return the width of the text box. Default: 35
Return the current value
Return whether the widget is currently enabled (see setEnabled).
Set whether the widget is enabled. When a widget is disabled, users can't interact with it and it is greyed out. When a widget that contains other widgets (like VerticalBox) is disabled, all its children behave as if disabled, too. By default, widgets are enabled.
Whether to enable the widget.
Set the font size.
The new font size. Default: 12
Set the maximum slider value. Default: 1
Set the minimum slider value. Default: 0
Set the slider step size. Default: 0.01
Set the width of the text box. Can be 0 to hide the text box.
Set the current slider value