UBorder::GetPadding
#include "Components/Border.h"
Access: public
Specifiers: const
Description
Returns the padding applied between the border's edge and its content.
Caveats & Gotchas
- • Not a UFUNCTION — call SetPadding to change the value at runtime and force a layout update rather than mutating a cached copy of this return value.
- • Direct field access to the deprecated Padding property was removed in favor of this getter as of UE 5.1.
Signature
UMG_API FMargin GetPadding() const; Return Type
FMargin Example
Read the current padding from C++ C++
FMargin CurrentPadding = MyBorder->GetPadding(); See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?