SWidget::SetDesiredSize

Explicitly set the desired size.

Windows
MacOS
Linux

References

Module

SlateCore

Header

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

Include

#include "Widgets/SWidget.h"

Syntax

void SetDesiredSize
(
    const FVector2D & InDesiredSize
)

Remarks

Explicitly set the desired size. This is highly advanced functionality that is meant to be used in conjunction with overriding CacheDesiredSize. Use ComputeDesiredSize() instead.

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