Garry's Mod Wiki

Garry's Mod Wiki

  Panel:SetSize( number width, number height )

Description

Sets the size of the panel.

Calls PANEL:OnSizeChanged and marks this panel for layout (Panel:InvalidateLayout).

See also Panel:SetWidth and Panel:SetHeight.

If you wish to position and re-size panels without much guesswork and have them look good on different screen resolutions, you may find Panel:Dock useful

Arguments

1 number width
The width of the panel.
2 number height
The height of the panel.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...