Wowpedia
Advertisement
Wowpedia
240,483
pages

Returns the number of Frames or LayeredRegions directly subordinate to this frame.

numChildren = frame:GetNumChildren()
numRegions = frame:GetNumRegions()

Returns

numChildren 
number - How many Frames are directly subordinate to this one (ie, excluding grandchildren).
numRegions 
number - How many LayeredRegions are directly subordinate to this frame (ie, excluding regions inside child frames).

Patch changes

See also

  • Frame:GetChildren() - Returns a reference to each child Frame, to access it directly.
  • Frame:GetRegions() - Returns a reference to each LayeredRegion, to access it directly.

References

Advertisement