UKismetSystemLibrary::GetSupportedFullscreenResolutions
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintCallable
Description
Queries the device for the list of resolutions it supports in fullscreen mode.
Caveats & Gotchas
- • Returns false if the query fails (e.g. on platforms without a queryable display device); always check the return value before trusting Resolutions.
- • Results depend on the monitor/display currently attached and can differ between machines — don't hardcode assumptions from editor testing.
- • On consoles and mobile this often returns a very short or fixed list since fullscreen resolution isn't user-selectable.
Signature
static bool GetSupportedFullscreenResolutions(TArray<FIntPoint>& Resolutions) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Resolutions | TArray<FIntPoint>& | Output array populated with the fullscreen resolutions the display device supports. | — |
Return Type
bool Example
Populate a resolution options list C++
TArray<FIntPoint> Resolutions;
if (UKismetSystemLibrary::GetSupportedFullscreenResolutions(Resolutions))
{
for (const FIntPoint& Res : Resolutions)
{
UE_LOG(LogTemp, Log, TEXT("%dx%d"), Res.X, Res.Y);
}
} Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?