UBorder
Inherits: UObjectBase › UObjectBaseUtility › UObject › UVisual › UWidget › UPanelWidget › UContentWidget › UBorder
#include "Components/Border.h" Description
A single-child container that renders a configurable background brush (solid color, texture, or material) with padding. Commonly used to visually frame or highlight a section of UI.
Caveats & Gotchas
- • UBorder holds only one child — it derives from UContentWidget. Use UOverlay or UCanvasPanel if you need a shared background behind multiple widgets.
- • BrushColor tints the background image; ContentColorAndOpacity tints the child content. They are independent multipliers applied separately.
- • For animated or parameterized backgrounds, call GetDynamicMaterial() to obtain or create a UMaterialInstanceDynamic that can be driven at runtime.
Example
Set a semi-transparent dark background C++
MyBorder->SetBrushColor(FLinearColor(0.05f, 0.05f, 0.05f, 0.8f));
MyBorder->SetPadding(FMargin(8.f)); Version History
Introduced in: 4.5
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?