Garry's Mod Wiki

Revision Difference

Panel:GetChildren#548643

<function name="GetChildren" parent="Panel" type="classfunc"> <description>Returns a table with all the child panels of the panel.</description>⤶ <description>Returns a table with all the child panels of the panel.<note>The keys are **NOT** guaranteed to be sequential!</note>⤶ </description>⤶ <realm>Client</realm> <rets> <ret name="" type="table">children</ret> </rets> </function> <example> <description>Print the classnames of the children on the panel.</description> <code> for _, v in ipairs( panel:GetChildren() ) do for _, v in pairs( panel:GetChildren() ) do print( v:GetClassName() ) end </code> </example>