RealDocs

UBorder::ContentColorAndOpacityDelegate

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

Description

Bindable delegate backing the border's ContentColorAndOpacity property binding in the UMG Designer, letting the content tint be driven from a bound function instead of a static value.

Caveats & Gotchas

  • Normally populated by the 'Bind' dropdown next to Content Color and Opacity in the Details panel rather than assigned directly in most workflows.
  • Evaluated every frame while bound (via the widget's PROPERTY_BINDING_IMPLEMENTATION plumbing), so an expensive bound function becomes a recurring per-frame cost.

Signature

FGetLinearColor ContentColorAndOpacityDelegate

Example

Bind the content tint to a function C++
// GetPulseTint is a UFUNCTION(BlueprintPure) declared on UMyUserWidget returning FLinearColor
void UMyUserWidget::NativeConstruct()
{
    Super::NativeConstruct();
    if (MyBorder)
    {
        MyBorder->ContentColorAndOpacityDelegate.BindDynamic(this, &UMyUserWidget::GetPulseTint);
    }
}

Tags

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.