UGameEngine::DetermineGameWindowResolution

Determines the resolution of the game window, ensuring that the requested size is never bigger than the available desktop size

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/GameEngine.h

Include

#include "Engine/GameEngine.h"

Source

/Engine/Source/Runtime/Engine/Private/GameEngine.cpp

Syntax

static void DetermineGameWindowResolution
(
    int32 & ResolutionX,
    int32 & ResolutionY,
    EWindowMode::Type & WindowMode,
    bool bUseWorkAreaForWindowed
)

Remarks

Determines the resolution of the game window, ensuring that the requested size is never bigger than the available desktop size

Parameters

Parameter

Description

ResolutionX

[in/out] Width of the game window, in pixels

ResolutionY

[in/out] Height of the game window, in pixels

WindowMode

[in/out] What window mode the game should be in

bUseWorkArea

[in] Should we find a resolution that fits within the desktop work area for the windowed mode instead of monitor's full resolution

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss