Method DoSlider
DoSlider(Rect, ref float, Vector2, Vector2)
Draws the slider
Declaration
protected virtual void DoSlider(Rect rect, ref float value, Vector2 sliderRange, Vector2 _)
Parameters
Type | Name | Description |
---|---|---|
Rect | rect | The Rect to draw the slider. |
float | value | The current value, and also returns the modified value. |
Vector2 | sliderRange | The ranges of the slider. |
Vector2 | _ | Not used |
DoSlider(Rect, ref float, Vector2)
Draws a linear slider mapped to the min/max value range. Override this for different slider behavior (texture background, power).
Declaration
protected virtual void DoSlider(Rect rect, ref float value, Vector2 sliderRange)
Parameters
Type | Name | Description |
---|---|---|
Rect | rect | The Rect to draw the slider. |
float | value | The current value, and also returns the modified value. |
Vector2 | sliderRange | The ranges of the slider. |