Accessing table returned by gui.clone_tree

Hi, may I ask what’s the table structure like when returning a gui.clone_tree(gui node)?

I managed to print a table saved, but table[0], table[1] etc returns a nil value for me.

You can pprint() the table.

local t = gui.clone_tree(node)
pprint(t)

The returned table is not a numeric table. Instead, a key-value table. You can access the node by table.node_id or table["node_id"]

2 Likes