UBorder::SetBrushColor
#include "Components/Border.h"
Access: public
Specifiers: UFUNCTIONBlueprintCallable
Description
Sets the tint color applied to the border's background brush image.
Caveats & Gotchas
- • Affects only the background brush, not the child content's color — use SetContentColorAndOpacity for the content.
- • If the brush has no image resource, this effectively becomes the border's solid fill color.
Signature
UMG_API void SetBrushColor(FLinearColor InBrushColor) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| InBrushColor | FLinearColor | New tint color for the border's background brush. | — |
Return Type
void Example
Tint the border background C++
void UMyUserWidget::HighlightBorder()
{
if (MyBorder)
{
MyBorder->SetBrushColor(FLinearColor::Red);
}
} Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?