# Enum.DeviceSimulatorScalingMode

Roblox Engine API enum from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- HTML page: https://rapi.sleaze.dev/enums/DeviceSimulatorScalingMode/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/enums/DeviceSimulatorScalingMode

Controls how the Device Simulator viewport scales the simulated device resolution within the Studio window.

## Items

| Name | Value | Description |
| --- | --- | --- |
| `ScaleToPhysicalSize` | 0 | 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. |
| `ActualResolution` | 1 | Renders the simulated viewport at a 1:1 pixel mapping with no scaling applied. |
| `FitToWindow` | 2 | Scales the simulated viewport uniformly to fill as much of the available Studio window as possible while preserving the device's aspect ratio. |

## Used by

Each entry lists the class, then the role and names of the members that use this type.

- [StudioDeviceSimulatorService](https://rapi.sleaze.dev/classes/StudioDeviceSimulatorService.md): method return `GetScalingModeAsync`; method parameter `SetScalingModeAsync`
