Slider#
- public class Slider#
A control for choosing a number by dragging a handle along a track. Added to a
Canvasor aPanel.Base class:InputControlInherited Members
From
InputControl:getChanged,setChangedFrom
Control:getInteractable,setInteractable,getColor,setColor,getTooltip,setTooltipFrom
Object:getRectTransform,getLayoutElement,getVisible,setVisible,remove
- float getValue()#
- void setValue(float value)#
The value of the slider, between
Slider.getMin()andSlider.getMax(). Setting a value outside the range is refused.
- float getMin()#
- void setMin(float value)#
The value at the low end of the slider, which is its left hand end, or the bottom of a vertical slider. Must not be greater than
Slider.getMax().
- float getMax()#
- void setMax(float value)#
The value at the high end of the slider, which is its right hand end, or the top of a vertical slider. Must not be less than
Slider.getMin().