View Single Post
06-22-19, 07:41 AM   #5
Lybrial
A Flamescale Wyrmkin
AddOn Compiler - Click to view compilations
Join Date: Jan 2010
Posts: 120
Hi, thx for your quick reply.

Yes, the code works. But it only prints out 223 children of 398

Code:
print("amount children: " .. UIParent:GetNumChildren());
	
local children = { UIParent:GetChildren() };
	
for key, child in ipairs(children) do
	local name = child:GetName() or child:GetDebugName();
			
	if name then 
		print(key .. ": " .. name);
	else 
		print(key .. ": " .. "Not Named");
	end
end
I know the names of some frames. "Grid2LayoutFrame" frame for
example is a child of UIParent. Thats what im getting with /framestack.
But this frame is not appearing in the list of frames im printing.

Btw. Not Named is never printed out. Its erroring out after 223 items.

Last edited by Lybrial : 06-22-19 at 07:44 AM.
  Reply With Quote