Having trouble understanding UI layers and interactions

Godot Version

4.6

Question

I am working on a 2d game and having some trouble getting the UI to work properly once the game runs. I have my player UI as a child of a CanvasLayer, but when I run my game the buttons on my UI can’t be clicked. I am not sure why though.

When the game runs after the player signs in the Login_Screen turns off (sets visible to false) which I thought might be a problem but it doesn’t appear to be the issue.

Here are my buttons once the game is running. They should all be working, all the button code seems to be fine and all the settings seem to be correct (Its the same setup I have used in other projects)

What could be the problem here?

In the Debug panel there is a “Misc” tab that can show you what node is intercepting your clicks. It’s probably the Login_Screen if it cover the entire screen the Control node will intercept clicks by default, you can set it’s mouse mode to pass or ignore

2 Likes