slider help

hey guys, i’ve been trying to work out how to use the slider but it isnt very clear:

static function Slider (position : Rect, value : float, leftValue : float, rightValue : float) : float
static function Slider (position : Rect, label : string, value : float, leftValue : float, rightValue : float) : float
static function Slider (position : Rect, label : GUIContent, value : float, leftValue : float, rightValue : float) : float

could somone possibly just write a quick example line out? thanks

I don’t know what “Slider” is (maybe it’s old?), but you can use VerticalSlider and HorizontalSlider instead.
The documentation on them provide a simple example and descriptions of each parameter: