SetWidgetAttribute

Performs the attribute assignment and invalidates the widget minimally based on what actually changed.

Windows
MacOS
Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Widgets/SWidget.h

Include

#include "Widgets/SWidget.h"

Syntax

template<typename TargetValueType, typename SourceValueType>
static bool SetWidgetAttribute
(
    SWidget & ThisWidget,
    TAttribute< TargetValueType > & TargetValue,
    const TAttribute< SourceValueType > & SourceValue,
    EInvalidateWidgetReason BaseInvalidationReason
)

Remarks

Performs the attribute assignment and invalidates the widget minimally based on what actually changed. So if the boundness of the attribute didn't change volatility won't need to be recalculated. Returns true if the value changed.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss