1 min read

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

NameValueDescription
FixedSize0Renders with a fixed size set using SurfaceGui.CanvasSize.
PixelsPerStud1Renders 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.

FieldValue
value0

PixelsPerStud

Renders with a variable size based on SurfaceGui.PixelsPerStud and the SurfaceGui's size in studs.

FieldValue
value1