Hslider value while dragging

Godot Version

v4.2.2

Question

Hello everyone,
Is it possible to get the value of an Hslider while dragging the silder? I’ll try to explain it more clear here:

  • You click on the handle of the slider to change the value → drag_started() signal is emitted.
  • You are still clicking on the handle → drag_ended() is not emitted yet.
  • Get the value of the slider whenever you move the handle.

If you connect to the Range.value_changed signal it should emit every time the value changes.

2 Likes

I was recently playing with the hslider as well and after connecting the signal as suggested above the engine shared some warning about the hsilder Range property.

1 Like

I tried the solution it worked for me. I haven’t seen the warning as you did. But I’ll keep an eye of it.

1 Like