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

static function IntSlider (position : Rect, value : int, leftValue : int, rightValue : int) : int

static function IntSlider (position : Rect, label : string, value : int, leftValue : int, rightValue : int) : int

static function IntSlider (position : Rect, label : GUIContent, value : int, leftValue : int, rightValue : int) : int

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

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

Description

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