SWindow::SetViewportSizeDrivenByWindow

Sets whether or not the viewport size should be driven by the window's 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

void SetViewportSizeDrivenByWindow
(
    bool bDrivenByWindow
)

Remarks

Sets whether or not the viewport size should be driven by the window's size. If true, the two will be the same. If false, an independent viewport size can be specified with SetIndependentViewportSize