EditorGUI.Slider Manual     Reference     Scripting  
Scripting > Editor Classes > EditorGUI
EditorGUI.Slider

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

Parameters

NameDescription
position Rectangle on the screen to use for the slider.
label Optional label in front of the slider.
value The value the slider shows. This determines the position of the draggable thumb.
leftValue The value at the left end of the slider.
rightValue The value at the right end of the slider.

Returns

float - The value that has been set by the user.

Description

Make a slider the user can drag to change a value between a min and a max.