0 votes

Is there a way to check if a button is being hovered over? Because has_focus() and hover are not the same.

Thanks in advance!

asked Aug 31, 2017 in Engine by Chain (71 points)

1 Answer

0 votes

If you want to check this every frame or just query the state:


If you want to get notified when the button is hovered, you can use the signals mouse_enter and mouse_exit.

answered Aug 31, 2017 by Zylann (27,009 points)

That did the trick. Thanks :)

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.