Wowpedia
Advertisement
Wowpedia
240,483
pages

Returns references to the Frames or LayeredRegions directly subordinate to this frame.

child1, child2, ... = frame:GetChildren()
region1, region2, ... = frame:GetRegions()

Returns

child1, child2, ... 
Frame - References to each Frame that is a direct subordinate of this one (ie, excluding grandchildren).
region1, region2, ... 
LayeredRegion - References to each LayeredRegion that is a direct subordinate of this frame (ie, excluding regions inside child frames).

Details

Example

Iterates through each child using a table.

local children = { QuestLogFrame:GetChildren() }
for i, child in ipairs(children) do
	-- do something to each child here
end

Patch changes

See also

References

Advertisement