|Topic was automatically imported from the old Question2Answer platform.
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.