mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Mention how to remove TreeItem from a Tree
(cherry picked from commit f6aec99d27)
This commit is contained in:
committed by
Rémi Verschelde
parent
cc08101d50
commit
6bb87d7d23
@@ -16,7 +16,7 @@
|
||||
var subchild1 = tree.create_item(child1)
|
||||
subchild1.set_text(0, "Subchild1")
|
||||
[/codeblock]
|
||||
To iterate over all the [TreeItem] objects in a [Tree] object, use [method TreeItem.get_next] and [method TreeItem.get_children] after getting the root through [method get_root].
|
||||
To iterate over all the [TreeItem] objects in a [Tree] object, use [method TreeItem.get_next] and [method TreeItem.get_children] after getting the root through [method get_root]. You can use [method Object.free] on a [TreeItem] to remove it from the [Tree].
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
||||
Reference in New Issue
Block a user