This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+2 votes

NOTE: I solved it, my issue was that my HBoxContainer Mouse filter was not set to Ignore. This made my buttons work now, but knowing of an easy way to break on any mouse click and follow it through would be useful

I have a GUI scene, with various containers for layout. This scene is instanced inside of a game scene, which has a viewport container, viewport with the game stuff, and the GUI as a sibling to the viewport:

GUI:
enter image description here

Game scene (with the UI highlighted):
enter image description here

Screenshot showing buttons along the bottom:
enter image description here

My issue is that clicking on the buttons does not work usually. I think the BoostButton can be clicked sometimes, but have not been able to click the CCW, CW, or Reset buttons.

I have a basic understanding of input handling, but it falls short of helping me debug this issue. I'm familiar with the built in debugger for gdscript. Is there some way to use that debugger to break on any mouse click input and follow it through to see where it is being handled? Is it possible there is some object in front of the GUI that isn't letting the click through to the buttons?

Any help is appreciated. Thanks!

Godot version 3.4
in Engine by (14 points)

While your game is running, in the debugger you can navigate to the Misc tab and it will show you the last control node that as clicked as well as the type of control node it was. That is the extent of my knowledge though.

1 Answer

0 votes

Just amplifying @timothybrentwood's comment from last year left above which answers OP:

While your game is running, in the debugger you can navigate to the Misc tab and it will show you the last control node that as clicked as well as the type of control node it was. That is the extent of my knowledge though.

This unblocked me as well and I'd upvote it if I could!

by (14 points)

Me too - extremely useful to know, thanks TB.

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.