UBorder::BackgroundDelegate
#include "Components/Border.h"
Access: public
Specifiers: UPROPERTY
Description
Bindable delegate backing the Background brush property binding in the UMG Designer, letting the brush be driven from a bound function each frame.
Caveats & Gotchas
- • Normally populated by the 'Bind' dropdown next to Brush in the Details panel rather than assigned directly in most workflows.
- • Unlike ContentColorAndOpacityDelegate and BrushColorDelegate, Background has no PROPERTY_BINDING_IMPLEMENTATION macro — its binding is evaluated separately in SynchronizeProperties.
Signature
FGetSlateBrush BackgroundDelegate Example
Bind the background brush to a function C++
// GetActiveBrush is a UFUNCTION(BlueprintPure) declared on UMyUserWidget returning FSlateBrush
void UMyUserWidget::NativeConstruct()
{
Super::NativeConstruct();
if (MyBorder)
{
MyBorder->BackgroundDelegate.BindDynamic(this, &UMyUserWidget::GetActiveBrush);
}
} See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?