You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 17:36:07 +00:00
Tree::get_edited Fix in docs example code
This commit is contained in:
@@ -100,7 +100,7 @@
|
||||
Returns the currently edited item. Can be used with [signal item_edited] to get the item that was modified.
|
||||
[codeblock]
|
||||
func _ready():
|
||||
$Tree.item_edited.connect(on_Tree_item_edited)
|
||||
$Tree.connect("item_edited", self, "on_Tree_item_edited")
|
||||
|
||||
func on_Tree_item_edited():
|
||||
print($Tree.get_edited()) # This item just got edited (e.g. checked).
|
||||
|
||||
Reference in New Issue
Block a user