UKismetSystemLibrary::GetMinYResolutionForUI
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns the smallest vertical (Y) resolution, in pixels, that the project wants to support for UI rendering.
Caveats & Gotchas
- • Cannot be used in construction scripts — flagged UnsafeDuringActorConstruction.
- • This is a design-intent floor read from scalability/UI settings, not a hardware capability query — it doesn't tell you the actual current screen resolution.
- • Distinct from GetMinYResolutionFor3DView, which returns a separate (usually lower) floor for the 3D viewport.
Signature
static int32 GetMinYResolutionForUI() Return Type
int32 Example
Warn if current resolution is below the UI floor C++
const int32 MinY = UKismetSystemLibrary::GetMinYResolutionForUI();
if (ViewportSize.Y < MinY)
{
UE_LOG(LogTemp, Warning, TEXT("Viewport height %d is below the minimum UI resolution %d"), ViewportSize.Y, MinY);
} Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?