Function not getting called after using .connect() to connect it

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Manako

I have a scene with buttons. I want these buttons to do different things based on where I instance the scene.
I instance the scene using scene.instance()
call .connect(“pressed”, self, “_on_button_pressed”
the connection is working as it returns 0
set button.toggle_mode = true
add it to the scene with add_child(instance)

Now when I click the button, nothing happens, the function is not called at all.

:bust_in_silhouette: Reply From: Manako

Solved: The button’s button mask got turned off by a teammate to fix a different issue.