Click or drag to resize

TreeGetEdited Method

Returns the currently edited item. Can be used with item_edited 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).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public TreeItem GetEdited()

Return Value

Type: TreeItem

[Missing <returns> documentation for "M:Godot.Tree.GetEdited"]

See Also