You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Updated gdscript (markdown)
@@ -654,8 +654,8 @@ func _button_pressed(which):
|
||||
print("Button was pressed: ",which.get_name())
|
||||
|
||||
func _ready():
|
||||
for b in get_node("buttons").get_children():
|
||||
b.connect("pressed",self,"_button_pressed",[b])
|
||||
for b in get_node("buttons").get_children():
|
||||
b.connect("pressed",self,"_button_pressed",[b])
|
||||
```
|
||||
|
||||
Finally, emitting a custom signal is done by using the [Object.emit_signal](class_object#emit_signal) method:
|
||||
|
||||
Reference in New Issue
Block a user