Garry's Mod Wiki

Panel:GetChild

  Panel Panel:GetChild( number childIndex )

Description

Gets a child by its index. Typically used with Panel:ChildCount.

Arguments

1 number childIndex
The index of the child to get.

This index starts at 0, except when you use this on a DMenu.

Returns

1 Panel
The child panel, or a nil