UBorder::BrushColorDelegate
#include "Components/Border.h"
Access: public
Specifiers: UPROPERTY
Description
Bindable delegate backing the border's BrushColor property binding in the UMG Designer, letting the background tint be driven from a bound function.
Caveats & Gotchas
- • Normally populated by the 'Bind' dropdown next to Brush Color in the Details panel rather than assigned directly in most workflows.
- • Evaluated every frame while bound, so an expensive bound function becomes a recurring per-frame cost.
Signature
FGetLinearColor BrushColorDelegate Example
Bind the brush tint to a function C++
// GetWarningTint is a UFUNCTION(BlueprintPure) declared on UMyUserWidget returning FLinearColor
void UMyUserWidget::NativeConstruct()
{
Super::NativeConstruct();
if (MyBorder)
{
MyBorder->BrushColorDelegate.BindDynamic(this, &UMyUserWidget::GetWarningTint);
}
} See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?