The API is no longer being updated here until further notice. |
Returns a list of child frames belonging to the frame.
child1, ... = Frame:GetChildren()
Returns[]
- child1, ...
- ScriptObject? - A list of frames which are children of this frame or
nil
if there are noone.
Example[]
Iterates through each child using a table.
local children = {PlayerFrame:GetChildren()}
for i, child in ipairs(children) do
print(i, child:GetObjectType(), child:GetDebugName())
end
1, "Frame", "PlayerFrame.Selection"
2, "Frame", "PlayerFrame.PlayerFrameContainer"
3, "Frame", "PlayerFrame.PlayerFrameContent"
4, "Frame", "PlayerFrameDropDown"
5, "Frame", "PlayerFrameBottomManagedFramesContainer"
...
Patch changes[]
Patch 1.7.0 (2005-09-13): Added.[1]
References[]
- ^ slouken 2005-08-15. Re: Upcoming 1.7 Changes - Concise List. Archived from the original