Returns the currently edited item. Can be used with itemEdited to get the item that was modified.
func _ready(): $Tree.item_edited.connect(on_Tree_item_edited)
func on_Tree_item_edited(): print($Tree.get_edited()) # This item just got edited (e.g. checked).
See Implementation
Returns the currently edited item. Can be used with itemEdited to get the item that was modified.