10000 Block definition: Add _to_string() method · endlessm/godot-block-coding@4c6acb1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c6acb1

Browse files
committed
Block definition: Add _to_string() method
For easier debugging.
1 parent 768de50 commit 4c6acb1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

addons/block_code/code_generation/block_definition.gd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,7 @@ func _init(
5252
defaults = p_defaults
5353
signal_name = p_signal_name
5454
scope = p_scope
55+
56+
57+
func _to_string():
58+
return "%s - %s" % [name, target_node_class]

0 commit comments

Comments
 (0)
0