# Enum.ScreenOrientation

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

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

The preference of in-game screen orientation on hand-held devices.

## Items

| Name | Value | Description |
| --- | --- | --- |
| `LandscapeLeft` | 0 | A preference where the game is displayed landscape (horizontally) with the bottom of the device on the left side of the screen. |
| `LandscapeRight` | 1 | A preference where the game is displayed landscape (horizontally) with the bottom of the device on the right side of the screen. |
| `LandscapeSensor` | 2 | A preference where the game is displayed landscape (horizontally) with the bottom of the device on the left of right side of the screen depending on the device's orientation (the sensor determines which side allows for the game to be displayed right-side-up). |
| `Portrait` | 3 | A preference where the game is displayed portrait (vertically) with the bottom of the device on the bottom of the screen. |
| `Sensor` | 4 | A preference where the game is displayed depending on the best match to the device's current orientation - either landscape (left/right) or portrait. |

## Used by

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

- [PlayerGui](https://rapi.sleaze.dev/classes/PlayerGui.md): property `CurrentScreenOrientation`, `ScreenOrientation`
- [StarterGui](https://rapi.sleaze.dev/classes/StarterGui.md): property `ScreenOrientation`
- [StudioDeviceEmulatorService](https://rapi.sleaze.dev/classes/StudioDeviceEmulatorService.md): method return `GetCurrentOrientation`; method parameter `SetCurrentOrientation`
- [StudioDeviceSimulatorService](https://rapi.sleaze.dev/classes/StudioDeviceSimulatorService.md): method return `GetOrientationAsync`; method parameter `SetOrientationAsync`
