Navigation
Unreal Engine C++ API Reference > Runtime > SlateCore > Types > Attributes
Inheritance Hierarchy
- TSlateMemberAttributeRef
- SWidget::TSlateAttributeRef
- SWidget::TSlateAttributeRef< FText, InInvalidationReasonValue >
- TSlateAttributeRef< FText, EInvalidateWidgetReason::None >
References
Module | SlateCore |
Header | /Engine/Source/Runtime/SlateCore/Public/Types/Attributes/SlateAttributeDefinition.inl |
Include | #include "Types/Attributes/SlateAttributeDefinition.inl" |
Syntax
template<typename AttributeMemberType>
struct TSlateMemberAttributeRef
Remarks
A reference to a SlateAttribute that can be returned and saved for later.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
TSlateMemberAttributeRef
(
const TSharedRef< WidgetType >& InOwner, |
Constructor | |
![]() |
TSlateMemberAttributeRef
(
ESlateMemberAttributeRefNoCheckParam, |
Constructor |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
UE_NODISCARD const ObjectType & | Get () |
|
![]() ![]() |
UE_NODISCARD const ObjectType & | Get
(
const ObjectType& DefaultValue |
|
![]() ![]() |
UE_NODISCARDbool | IdenticalTo
(
const TSlateMemberAttributeRef& Other |
|
![]() ![]() |
UE_NODISCARDbool | IdenticalTo
(
const TAttribute< ObjectType >& Other |
|
![]() ![]() |
UE_NODISCARDbool | IsBound () |
|
![]() ![]() |
UE_NODISCARDbool | IsValid () |
|
![]() ![]() |
UE_NODISCARDTAttribute< ObjectType > | ToAttribute () |
Build a Attribute from this SlateAttribute. |
![]() |
UE_NODISCARD const ObjectType & | UpdateAndGet () |
Assumes the reference is valid. |
![]() |
UE_NODISCARD const ObjectType & | UpdateAndGet
(
const ObjectType& DefaultValue |
Shorthand for the boilerplace code: MyAttribute.UpdateValueNow(); MyAttribute.Get(DefaultValue); |
![]() |
void | UpdateValue () |
Update the cached value and invalidate the widget if needed. |
Typedefs
Name | Description |
---|---|
AttributeType | |
ObjectType | |
SlateAttributeType |