Click or drag to resize

TreeGetSelected Method

Returns the currently focused item, or null if no item is focused.

In and modes, the focused item is same as the selected item. In mode, the focused item is the item under the focus cursor, not necessarily selected.

To get the currently selected item(s), use GetNextSelected(Object).

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

Return Value

Type: TreeItem

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

See Also