Skip to content

CustomSlider ​

Inherits: HBoxContainer

CustomSlider - Labeled slider control for blend shape and other value adjustments Emits value_changed signal with the new value when slider changes

Properties ​

Stringlabel_text"":
floatmin_value0.0:
floatmax_value1.0:
floatstep0.01:
floatinitial_value0.5:
boolshow_value_labeltrue

Methods ​

voidset_label( text: String )
floatget_value()
voidset_value_silent( value: float )
voidset_value( value: float )
voidreset()

Signals ​

value_changed( value: float ) ​

Emitted when the slider moves: the new value.

Property descriptions ​

String label_text = "": ​

The text of the label.

float min_value = 0.0: ​

The lowest value.

float max_value = 1.0: ​

The highest value.

float step = 0.01: ​

How much the value changes in a step.

float initial_value = 0.5: ​

The value the slider starts with.

bool show_value_label = true ​

True shows the number next to the slider.

Method descriptions ​

void set_label( text: String ) ​

Set the label text

float get_value() ​

Get current slider value

void set_value_silent( value: float ) ​

Set slider value without emitting signal

void set_value( value: float ) ​

Set slider value (emits signal)

void reset() ​

Reset to initial value