EDeviceScreenOrientation

Device orientations for screens. e.g. Landscape, Portrait, etc.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMisc.h

Include

#include "GenericPlatform/GenericPlatformMisc.h"

Syntax

enum EDeviceScreenOrientation
{
    Unknown,
    Portrait,
    PortraitUpsideDown,
    LandscapeLeft,
    LandscapeRight,
    FaceUp,
    FaceDown,
    PortraitSensor,
    LandscapeSensor,
}

Values

Name

Description

Unknown

The orientation is not known

Portrait

The orientation is portrait with the home button at the bottom

PortraitUpsideDown

The orientation is portrait with the home button at the top

LandscapeLeft

The orientation is landscape with the home button at the right side

LandscapeRight

The orientation is landscape with the home button at the left side

FaceUp

The orientation is as if place on a desk with the screen upward

FaceDown

The orientation is as if place on a desk with the screen downward

PortraitSensor

The orientation is portrait, oriented upright with the sensor

LandscapeSensor

The orientation is landscape, oriented upright with the sensor

Remarks

Device orientations for screens. e.g. Landscape, Portrait, etc.