UBorder::GetDesiredSizeScale
#include "Components/Border.h"
Access: public
Specifiers: const
Description
Returns the current desired-size scale multiplier previously set with SetDesiredSizeScale.
Caveats & Gotchas
- • Not marked UFUNCTION, so unlike its setter counterpart this getter is C++-only and has no Blueprint node.
- • Reflects the value last set via SetDesiredSizeScale, not the border's actual rendered size — use the widget's cached geometry for that.
Signature
UMG_API FVector2D GetDesiredSizeScale() const Return Type
FVector2D Example
Read the current desired size scale C++
void UMyUserWidget::LogBorderScale()
{
if (MyBorder)
{
const FVector2D Scale = MyBorder->GetDesiredSizeScale();
UE_LOG(LogTemp, Log, TEXT("Border desired size scale: %s"), *Scale.ToString());
}
} See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?