Godot Get button node in click event not working How we can get the button reference on the event function that is connected? My connect signals never works extends PanelContainer onready var hbox container ScrollContainer HBoxContainer var btn func ready() createbutton() func createbutton() btn Button.new() btn.set name("button 1") btn.text "button 1" hbox container.add child(btn) btn.connect("toggled", self, "button toggled", btn ) func button toggled(toggled, target) print("which button ", target.get name()) if toggled true print("Button ist pressed") else print("Button is released")