UWidget::GetDesiredSize

Gets the widgets desired size.

Windows
MacOS
Linux

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Components/Widget.h

Include

#include "Components/Widget.h"

Source

/Engine/Source/Runtime/UMG/Private/Components/Widget.cpp

Syntax

FVector2D GetDesiredSize() const

Remarks

Gets the widgets desired size. NOTE: The underlying Slate widget must exist and be valid, also at least one pre-pass must have occurred before this value will be of any use.

Returns

The widget's desired size

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