FSlotBase::SetAttribute

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

Choose your operating system:

Windows

macOS

Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/SlotBase.h

Include

#include "SlotBase.h"

Syntax

template<typename TargetValueType, typename SourceValueType>
bool SetAttribute
(
    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.