PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

BorderMode

BorderMode

Determines in what matter the border of a GuiObject is laid out relative to its actual dimensions. It is used by the property of the same name, GuiObject/BorderMode. See the animation below to understand how the layout changes as GuiObject/BorderSizePixel increases.


Enums

Name Value Description

Outline

0

As GuiObject/BorderSizePixel increases, the border grows outward. The dimensions of the GuiObject’s contents do not change.

Middle

1

As GuiObject/BorderSizePixel increases, the border grows evenly inward and outward. The dimensions of the GuiObject’s contents are reduced at a 1:1 ratio.

Inset

2

As GuiObject/BorderSizePixel increases, the border grows evenly inward only. The dimensions of the GuiObject’s contents are reduced at a 1:2 ratio.