UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SlateAttributePrivate::TSlateMemberAttributeRef< AttributeMemberType > Struct Template Reference
+ Inheritance diagram for SlateAttributePrivate::TSlateMemberAttributeRef< AttributeMemberType >:

Public Types

using SlateAttributeType = AttributeMemberType
 
using ObjectType = typename AttributeMemberType::ObjectType
 
using AttributeType = TAttribute< ObjectType >
 

Public Member Functions

template<typename WidgetType , typename V = typename std::enable_if<std::is_base_of<SWidget, WidgetType>::value>::type>
 TSlateMemberAttributeRef (const TSharedRef< WidgetType > &InOwner, const AttributeMemberType &InAttribute)
 
 TSlateMemberAttributeRef (ESlateMemberAttributeRefNoCheckParam, const TSharedRef< SWidget > &InOwner, const AttributeMemberType &InAttribute)
 
bool IsValid () const
 
const ObjectTypeGet () const
 
const ObjectTypeGet (const ObjectType &DefaultValue) const
 
void UpdateValue ()
 
const ObjectTypeUpdateAndGet ()
 
const ObjectTypeUpdateAndGet (const ObjectType &DefaultValue)
 
TAttribute< ObjectTypeToAttribute () const
 
bool IsBound () const
 
bool IdenticalTo (const TSlateMemberAttributeRef &Other) const
 
bool IdenticalTo (const TAttribute< ObjectType > &Other) const
 

Member Typedef Documentation

◆ AttributeType

◆ ObjectType

using SlateAttributePrivate::TSlateMemberAttributeRef< AttributeMemberType >::ObjectType = typename AttributeMemberType::ObjectType

◆ SlateAttributeType

Constructor & Destructor Documentation

◆ TSlateMemberAttributeRef() [1/2]

template<typename WidgetType , typename V = typename std::enable_if<std::is_base_of<SWidget, WidgetType>::value>::type>
SlateAttributePrivate::TSlateMemberAttributeRef< AttributeMemberType >::TSlateMemberAttributeRef ( const TSharedRef< WidgetType > &  InOwner,
const AttributeMemberType InAttribute 
)
inlineexplicit

Constructor

◆ TSlateMemberAttributeRef() [2/2]

SlateAttributePrivate::TSlateMemberAttributeRef< AttributeMemberType >::TSlateMemberAttributeRef ( ESlateMemberAttributeRefNoCheckParam  ,
const TSharedRef< SWidget > &  InOwner,
const AttributeMemberType InAttribute 
)
inlineexplicit

Constructor

Member Function Documentation

◆ Get() [1/2]

Returns
the SlateAttribute cached value; undefined when IsValid() returns false.

◆ Get() [2/2]

Returns
the SlateAttribute cached value or the DefaultValue if the reference is invalid.

◆ IdenticalTo() [1/2]

Returns
True if they have the same Getter or, if the Attribute is set, the same value.

◆ IdenticalTo() [2/2]

Returns
True if they have the same Getter or the same value.

◆ IsBound()

Returns
True if the SlateAttribute is bound to a getter function.

◆ IsValid()

Returns
if the reference is valid. A reference can be invalid if the SWidget is destroyed.

◆ ToAttribute()

Build a Attribute from this SlateAttribute.

◆ UpdateAndGet() [1/2]

Assumes the reference is valid. Shorthand for the boilerplace code: MyAttribute.UpdateValueNow(); MyAttribute.Get();

◆ UpdateAndGet() [2/2]

const ObjectType & SlateAttributePrivate::TSlateMemberAttributeRef< AttributeMemberType >::UpdateAndGet ( const ObjectType DefaultValue)
inline

Shorthand for the boilerplace code: MyAttribute.UpdateValueNow(); MyAttribute.Get(DefaultValue);

Returns
the SlateAttribute cached value or the DefaultValue if the reference is invalid.

◆ UpdateValue()

Update the cached value and invalidate the widget if needed.


The documentation for this struct was generated from the following files: