Garry's Mod Wiki

Revision Difference

Panel:GetChildren#527958

<function name="GetChildren" parent="Panel" type="classfunc"> <description>Returns a table with all the child panels of the panel.</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>⤶ <description>Print the classnames of the children on the panel.</description>⤶ <code> for i, v in ipairs(panel:GetChildren()) do print(v:GetClassName()) for _, v in ipairs( panel:GetChildren() ) do print( v:GetClassName() ) end </code> ⤶ </example></example>