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
| Name | Value | Description |
|---|---|---|
| Small | 0 | Viewport is categorized as small. Applies to most tablet/mobile/handheld devices. |
| Medium | 1 | Viewport is categorized as medium. Applies to most laptops and monitors. |
| Large | 2 | Viewport is categorized as large. Applies to most TVs or larger. |
Small
Viewport is categorized as small. Applies to most tablet/mobile/handheld devices.
| Field | Value |
|---|---|
| value | 0 |
Medium
Viewport is categorized as medium. Applies to most laptops and monitors.
| Field | Value |
|---|---|
| value | 1 |
Large
Viewport is categorized as large. Applies to most TVs or larger.
| Field | Value |
|---|---|
| value | 2 |