SWindow::GetViewportSize

Returns the viewport size, taking into consideration if the window size should drive the viewport size

Choose your operating system:

Windows

macOS

Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Widgets/SWindow.h

Include

#include "Widgets/SWindow.h"

Syntax

FVector2D GetViewportSize() const

Remarks

Returns the viewport size, taking into consideration if the window size should drive the viewport size