Godot - 检查滑块是否被悬停
Godot - Check if Slider is being hovered over
我希望能够在滑块未悬停时将其隐藏。 Has_focus() 只有在被点击时才有效。
对于滑块,您应该能够使用 mouse_enter() 信号来处理 "hovering." 然后 mouse_exit() 当光标离开滑块时。但请确保未在滑块属性上选中 "Ignore Mouse"。
http://docs.godotengine.org/en/stable/classes/class_control.html?highlight=mouse_enter
我希望能够在滑块未悬停时将其隐藏。 Has_focus() 只有在被点击时才有效。
对于滑块,您应该能够使用 mouse_enter() 信号来处理 "hovering." 然后 mouse_exit() 当光标离开滑块时。但请确保未在滑块属性上选中 "Ignore Mouse"。
http://docs.godotengine.org/en/stable/classes/class_control.html?highlight=mouse_enter