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.

DeviceSimulatorScalingMode

Controls how the Device Simulator viewport scales the simulated device resolution within the Studio window. The active mode is read and written via StudioDeviceSimulatorService:GetScalingModeAsync() and StudioDeviceSimulatorService:SetScalingModeAsync(). The default mode is DeviceSimulatorScalingMode.ScaleToPhysicalSize.

Items

NameValueDescription
ScaleToPhysicalSize0Scales the simulated viewport so that its pixels correspond to their physical size on the developer's monitor, computed from the screen DPI and an optional target DPI override.
ActualResolution1Renders the simulated viewport at a 1:1 pixel mapping with no scaling applied.
FitToWindow2Scales the simulated viewport uniformly to fill as much of the available Studio window as possible while preserving the device's aspect ratio.

ScaleToPhysicalSize

Scales the simulated viewport so that its pixels correspond to their physical size on the developer's monitor, computed from the screen DPI and an optional target DPI override.

FieldValue
value0

ActualResolution

Renders the simulated viewport at a 1:1 pixel mapping with no scaling applied.

FieldValue
value1

FitToWindow

Scales the simulated viewport uniformly to fill as much of the available Studio window as possible while preserving the device's aspect ratio.

FieldValue
value2