Garry's Mod Wiki

Garry's Mod Wiki

  number, number Panel:GetPos()

Description

Returns the position of the panel relative to its Panel:GetParent.

If you require the panel's position and size, consider using Panel:GetBounds instead.

If you need the position in screen space, see Panel:LocalToScreen.

See also Panel:GetX and Panel:GetY.

Returns

1 number
X coordinate, relative to this panels parents top left corner.
2 number
Y coordinate, relative to this panels parents top left corner.

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...