+3 votes

Hey all,

I know this sounds easy but i cant seem to figure out in a particular scene I have (it is working in other scenes normally). In my end game scene that i am loading, i have the following structure

enter image description here

My scene loads correctly, playing the animation and displaying the info expected, however the button is neither "hover-able" nor "click-able" although all basic settings have been tested (texture normal / hover, mouse filter pass / stop on all nodes leading to the button, focus mode : all, show behind parent = false ...)

Any idea that might route into the correct direction ?

I checked this and this but didn’t help...


in Engine by (860 points)
edited by

the last TextureRect could catched mouse event.
is that TextureRect covered a button?

Did you ever figure this out? I'm also having the same issue and can't find support?

3 Answers

0 votes

I had the same problem. I ended up using the "Button" node and replaced the property "Custom Styles" with new "StyleBoxTexture" for each option.

by (24 points)
0 votes

I think I had the same problem, for those who come next :
I did not put a texture for the focused state, and it worked for me.

by (14 points)
+5 votes

In case any other dev gets here: I found that the best way to determine what exactly "has been clicked" is by using the "clicked control" part of the debugger.

1.- Run your scene using the play button (top right corner), move it to another monitor/place so it doesn't bother you.
2.- While the scene is running, on the Godot editor window look for the "output", and click on "debugger" (see pic below)
3.- Inside the debugger, look for the last tab "misc", there you will find useful information (take special notice of the "clicked control" input), click on any place on the scene you're trying to debug to test it, each time the user clicks on a clickable node, you will find the info there.

Good luck

Clicked control - Godot debugger

by (30 points)

Thank you I have been trying to figure out why my button wouldn't press for hours and this worked!

thank you so much for that tip, I just found out the reason behind an annoying bug because of that.

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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.