I am trying to add some items onto the Tree Control.
I have Tree control in my Project
In Script attached to main root I have this. (this is all i have for code
No errors either... but it doesn't show anything in the tree.
What am i doing wrong.
var tree = Tree.new()
var root = tree.create_item()
var child1 = tree.create_item(root)
child1.set_text(0, "Child 1")
var child2 = tree.create_item(root)
child2.set_text(0, "Child 2")
var subchild1 = tree.create_item(child1)
subchild1.set_text(0, "Subchild 1")
var subchild2 = tree.create_item(child1)
subchild2.set_text(0, "Subchild 2")