Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

Slider

Inherits: Range < Control < CanvasItem < Node < Object

Inherited By: HSlider, VSlider

Abstract base class for sliders.

Description

Abstract base class for sliders, used to adjust a value by moving a grabber along a horizontal or vertical axis. Sliders are Range-based controls.

Properties

bool

editable

true

FocusMode

focus_mode

2 (overrides Control)

bool

scrollable

true

float

step

1.0 (overrides Range)

int

tick_count

0

bool

ticks_on_borders

false


Signals

drag_ended ( bool value_changed )

Emitted when dragging stops. If value_changed is true, Range.value is different from the value when you started the dragging.


drag_started ( )

Emitted when dragging is started.


Property Descriptions

bool editable = true

  • void set_editable ( bool value )

  • bool is