Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
SurfaceGuiSizingMode
Used by SurfaceGui.SizingMode to control the sizing behavior of a SurfaceGui.
Items
| Name | Value | Description |
|---|---|---|
| FixedSize | 0 | Renders with a fixed size set using SurfaceGui.CanvasSize. |
| PixelsPerStud | 1 | Renders with a variable size based on SurfaceGui.PixelsPerStud and the SurfaceGui's size in studs. |
FixedSize
Renders with a fixed size set using SurfaceGui.CanvasSize.
| Field | Value |
|---|---|
| value | 0 |
PixelsPerStud
Renders with a variable size based on SurfaceGui.PixelsPerStud and the SurfaceGui's size in studs.
| Field | Value |
|---|---|
| value | 1 |