RealDocs

UBorder::Background

property UMG Blueprint Since 4.0
#include "Components/Border.h"
Access: public Specifiers: UPROPERTYEditAnywhereBlueprintReadOnly

Description

The brush drawn as the border's background — controls the image, tiling, margins, and tint used to render the border.

Caveats & Gotchas

  • Marked BlueprintReadOnly, so Blueprints can read the current brush but cannot assign to it directly — use SetBrush, SetBrushColor, SetBrushFromTexture, or SetBrushFromMaterial instead.
  • Editing this property directly in C++ after construction does not automatically refresh the rendered Slate widget; use the setter functions or call SynchronizeProperties.

Signature

FSlateBrush Background

Example

Read the background brush C++
void UMyUserWidget::LogBorderBrush()
{
    if (MyBorder)
    {
        const FSlateBrush& Brush = MyBorder->Background;
        UE_LOG(LogTemp, Log, TEXT("Border brush resource: %s"), *GetNameSafe(Brush.GetResourceObject()));
    }
}

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.