SWidget::SlatePrepass

Descends to leaf-most widgets in the hierarchy and gathers desired sizes on the way up.

Windows
MacOS
Linux

References

Module

SlateCore

Header

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

Include

#include "Widgets/SWidget.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Widgets/SWidget.cpp

Syntax

void SlatePrepass
(
    float InLayoutScaleMultiplier
)

Remarks

Descends to leaf-most widgets in the hierarchy and gathers desired sizes on the way up. i.e. Caches the desired size of all of this widget's children recursively, then caches desired size for itself.

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