RealDocs

UBorder

class UMG Blueprint Since 4.5
#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));

Functions (19)

Appearance
19
Access Type Name
public function UBorder::GetHorizontalAlignment
public function UBorder::GetPadding
public function UBorder::GetVerticalAlignment
public function UBorder::SetBrushColor
public function UBorder::SetContentColorAndOpacity
public function UBorder::SetHorizontalAlignment
public function UBorder::SetPadding
public function UBorder::SetVerticalAlignment
public function UBorder::GetBrushColor
public function UBorder::GetContentColorAndOpacity
public function UBorder::GetDesiredSizeScale
public function UBorder::SetBrush
public function UBorder::SetBrushFromAsset
public function UBorder::SetBrushFromMaterial
public function UBorder::SetBrushFromTexture
public function UBorder::SetDesiredSizeScale
public function UBorder::SetShowEffectWhenDisabled
public function UBorder::GetDynamicMaterial
public function UBorder::GetShowEffectWhenDisabled

Properties

Access Type Name
public property UBorder::Background
public property UBorder::BackgroundDelegate
public property UBorder::BrushColorDelegate
public property UBorder::ContentColorAndOpacityDelegate
public property UBorder::OnMouseButtonDownEvent
public property UBorder::OnMouseButtonUpEvent
public property UBorder::OnMouseDoubleClickEvent
public property UBorder::OnMouseMoveEvent
public property UBorder::bFlipForRightToLeftFlowDirection

Version History

Introduced in: 4.5

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.