Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/UWidget
Description
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.
| Name | GetDesiredSize |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/Widget.h |
| Include Path | #include "Components/Widget.h" |
| Source | /Engine/Source/Runtime/UMG/Private/Components/Widget.cpp |
UFUNCTION (BlueprintCallable, Category="Widget")
FVector2D GetDesiredSize() const
The widget's desired size