Garry's Mod Wiki

Panel:GetChildren

  table Panel:GetChildren()

Description

Returns a table with all the child panels of the panel.

Returns

1 table
All direct children of this panel.

Example

Print the classnames of the children on the panel.

for _, v in ipairs( panel:GetChildren() ) do print( v:GetClassName() ) end