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.

DisplaySize

This enum is used with GuiService.ViewportDisplaySize to indicate the internally-categorized rendering size of the viewport.

Items

NameValueDescription
Small0Viewport is categorized as small. Applies to most tablet/mobile/handheld devices.
Medium1Viewport is categorized as medium. Applies to most laptops and monitors.
Large2Viewport is categorized as large. Applies to most TVs or larger.

Small

Viewport is categorized as small. Applies to most tablet/mobile/handheld devices.

FieldValue
value0

Medium

Viewport is categorized as medium. Applies to most laptops and monitors.

FieldValue
value1

Large

Viewport is categorized as large. Applies to most TVs or larger.

FieldValue
value2