class
SliderControl
public class SliderControl : BaseControl Constructors
SliderControl() SliderControl(Single min, Single max, Single step) Properties
| Name | Type | Description |
|---|---|---|
SupportsMultiEdit virtual | Boolean | |
OnValueChanged | Action<Single> | |
Max | Single | The right side of the slider. |
Min | Single | The left side of the slider. |
Step | Single | If set to 1, value will be rounded to 1's If set to 10, value will be rounded to 10's If set to 0.1, value will be rounded to 0.1's |
ShowRange | Boolean | Show the range values above the slider |
ShowValueTooltip | Boolean | When changing the value show the tooltip |
ShowTextEntry | Boolean | When changing the value show the tooltip |
NumberFormat | String | How to display numbers in this control |
Value | Single |
Methods
virtual Void Rebuild() virtual Single ScreenPosToValue(Vector2 pos) Convert a screen position to a value. The value is clamped, but not snapped.