UButton::GetBackgroundColor
#include "Components/Button.h"
Access: public
Specifiers: const
Description
Returns the color multiplier currently applied to the button's background brush.
Caveats & Gotchas
- • Not UFUNCTION-tagged, so it can't be called from Blueprint directly; Blueprint reads it through the BackgroundColor property's native getter.
- • Affects only the background brush drawn by the button's style, not any child content — see GetColorAndOpacity for the content tint.
Signature
FLinearColor GetBackgroundColor() const; Return Type
FLinearColor Example
Read current background tint C++
FLinearColor BgColor = Button->GetBackgroundColor(); Tags
Version History
Introduced in: 5.2
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?