Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UBlueprintPlatformLibrary
Description
Returns the allowed orientation of the device. This is NOT the same as GetDeviceOrientation, which only returns Portrait, LandscapeLeft, PortraitUpsideDown or LandscapeRight. The allowed orientation limits what orientation your device can have. So if you set the allowed orientation to LandscapeLeft, GetDeviceOrientation will only ever return LandscapeLeft. But if you set the allowed orientation to LandscapeSensor, you are actually restricting the allowed orientations to LandscapeLeft OR LandscapeRight (depending on the sensor), so GetDeviceOrientation might return LandscapeLeft OR LandscapeRight.
| Name | GetAllowedDeviceOrientation |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/BlueprintPlatformLibrary.h |
| Include Path | #include "Kismet/BlueprintPlatformLibrary.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Kismet/BlueprintPlatformLibrary.cpp |
UFUNCTION (BlueprintPure, Category="Platform|LocalNotification")
static EScreenOrientation::Type GetAllowedDeviceOrientation()
An EDeviceScreenOrientation value.