Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/FSlotBase
Description
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.
| Name | SetAttribute |
| Type | function |
| Header File | /Engine/Source/Runtime/SlateCore/Public/SlotBase.h |
| Include Path | #include "SlotBase.h" |
template<typename TargetValueType, typename SourceValueType>
bool SetAttribute
(
TAttribute < TargetValueType > & TargetValue,
const TAttribute < SourceValueType > & SourceValue,
EInvalidateWidgetReason BaseInvalidationReason
)