Lost signal in loading a scene.

Godot 4 .NET

Hello everyone,

I’m working on a 2D game using Godot 4. I have a main menu scene with many buttons used for level selection. Everything works fine the first time I load the menu. However, when I switch to another scene (a level) and then return to the menu, all the buttons seem to lose their pressed signal — clicking them no longer does anything.

I’ve tried multiple approaches to fix this. Currently, I’m using a global script to manage scene changes and another node to handle signals. The strange thing is, in the inspector, when I check the Pressed property under the BaseButton section of any button, the toggle activates and deactivates instantly — it won’t stay on.

It feels like the buttons are reloaded properly visually, but the connections or behavior are no longer working after coming back to the menu scene.

Has anyone experienced this before or have any idea how to fix it?

Thanks in advance for your help!

P.S. Sorry if my English isn’t perfect — it’s not my native language.

If you’re doing game controller style focus, you need to .call_deferred("grab_focus") on the button you want to have initial focus when the scene loads.

1 Like

You probably paused your game and didn’t un-pause it when changing the scene. Un-pause the SceneTree by setting SceneTree.paused to false.

Thanks, @mrcdk! Indeed, I had paused the game in the scene when the player won the level. I thought the pause only affected the local scene, not the global tree. Now it works fine. Thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.