I tried your code for one of my scene and I get 570 objects and 20 groups (which sounds enormous!).
I’ve modified this line:
print(indent.." \<object\> "..tostring(child))
and replaced it by:
print(indent.." \<object\> "..inspect(child))
So I can get more details about the object, e.g:
\<object\> { \_class = \<1\>{ \_\_index = \<table 1\>, addEventListener = \<function 1\>, removeEventListener = \<function 2\>, \<metatable\> = \<2\>{ \_\_index = \<table 2\>, \_super = \<3\>{ \_\_index = \<table 3\>, \_indexForType = { function = "\_functionListeners", table = "\_tableListeners" }, \_super = \<4\>{ \_\_index = \<table 4\>, new = \<function 3\>, newClass = \<function 4\> }, addEventListener = \<function 5\>, didRemoveListener = \<function 6\>, dispatchEvent = \<function 7\>, getOrCreateTable = \<function 8\>, hasEventListener = \<function 9\>, removeEventListener = \<function 10\>, respondsToEvent = \<function 11\>, \<metatable\> = \<table 4\> }, addEventListener = \<function 12\>, removeEventListener = \<function 13\>, \<metatable\> = \<table 3\> } }, \_isLabel = true, \_labelColor = { default = { 0.08, 0.49, 0.98, 1 }, over = { 0.08, 0.49, 0.98, 1 } }, \_proxy = \<userdata 1\>, \<metatable\> = { \_\_index = \<function 14\>, \_\_newindex = \<function 15\> }
But from this, is there a way to get the actual name (“myListView4”, “myYellowRect”) and the object type (“tableView”, newRect) ?