I try use it after update to UE5.0.2. It was work well on UE5.0 EA.
2 Likes
Try adding this c++ utility function:
void UFunctionLibrary::SetResolution(const int ResX, const int ResY)
{
if (GEngine && GEngine->GameViewport && GEngine->GameViewport->ViewportFrame)
{
GEngine->GameViewport->ViewportFrame->ResizeFrame(ResX, ResY, EWindowMode::Windowed);
}
}