Godot - Check if Slider is being hovered over

543 views Asked by At

I want to be able to hide the slider if it isn't being hovered over. Has_focus() only works if it was being clicked on.

1

There are 1 answers

0
Cody Parker On BEST ANSWER

For the sliders, you should be able to use the mouse_enter() signal to handle "hovering." And then mouse_exit() when the cursor leaves the slider. But make sure that "Ignore Mouse" is not checked on the slider properties.

http://docs.godotengine.org/en/stable/classes/class_control.html?highlight=mouse_enter