Slider

Inherits: Range < Control < CanvasItem < Node < Object

Inherited By: HSlider, VSlider

Base class for GUI sliders.

Description

Base class for GUI sliders.

Properties

booleditabletrue
FocusModefocus_modeO: 2
boolscrollabletrue
intsize_flags_verticalO: 0
inttick_count0
boolticks_on_bordersfalse

Property Descriptions

Defaulttrue
Setterset_editable(value)
Getteris_editable()

If true, the slider can be interacted with. If false, the value can be changed only by code.


Defaulttrue
Setterset_scrollable(value)
Getteris_scrollable()

If true, the value can be changed using the mouse wheel.


Default0
Setterset_ticks(value)
Getterget_ticks()

Number of ticks displayed on the slider, including border ticks. Ticks are uniformly-distributed value markers.


  • bool ticks_on_borders
Defaultfalse
Setterset_ticks_on_borders(value)
Getterget_ticks_on_borders()

If true, the slider will display ticks for minimum and maximum values.

doradoro's advice! Getters and Setters will be deprecated! Avoid their use!

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 2020-03-07 at 01:40:12. It's the English Stable version because it's what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.