0
我希望能够隐藏滑块,如果它没有被悬停。 Has_focus()仅在点击时才起作用。Godot - 检查滑块是否被徘徊
我希望能够隐藏滑块,如果它没有被悬停。 Has_focus()仅在点击时才起作用。Godot - 检查滑块是否被徘徊
对于滑块,您应该可以使用mouse_enter()信号来处理“悬停”。然后在光标离开滑块时使用mouse_exit()。但请确保滑块属性上未选中“忽略鼠标”。
http://docs.godotengine.org/en/stable/classes/class_control.html?highlight=mouse_enter