Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TAttribute
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TAttribute () |
Default constructor. | Misc/Attribute.h | |
TAttribute
(
const OtherType& InInitialValue |
Construct implicitly from an initial value | Misc/Attribute.h | |
TAttribute
(
ObjectType&& InInitialValue |
Construct implicitly from moving an initial value | Misc/Attribute.h | |
TAttribute
(
TSharedRef< SourceType > InUserObject, |
Constructs by binding an arbitrary function that will be called to generate this attribute's value on demand. | Misc/Attribute.h | |
TAttribute
(
SourceType* InUserObject, |
Constructs by binding an arbitrary function that will be called to generate this attribute's value on demand. | Misc/Attribute.h | |
TAttribute
(
const FGetter& InGetter, |
Special explicit constructor for TAttribute::Create() | Misc/Attribute.h | |
TAttribute
(
FGetter&& InGetter, |
Special explicit constructor for TAttribute::Create() | Misc/Attribute.h |
TAttribute()
Description
Default constructor.
| Name | TAttribute |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Attribute.h |
| Include Path | #include "Misc/Attribute.h" |
TAttribute()
TAttribute(const OtherType &)
Description
Construct implicitly from an initial value
| Name | TAttribute |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Attribute.h |
| Include Path | #include "Misc/Attribute.h" |
template<typename OtherType>
TAttribute
(
const OtherType & InInitialValue
)
Parameters
| Name | Remarks |
|---|---|
| InInitialValue | The value for this attribute |
TAttribute(ObjectType &&)
Description
Construct implicitly from moving an initial value
| Name | TAttribute |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Attribute.h |
| Include Path | #include "Misc/Attribute.h" |
TAttribute
(
ObjectType && InInitialValue
)
Parameters
| Name | Remarks |
|---|---|
| InInitialValue |
TAttribute(TSharedRef< SourceType >, typename FGetter::template TConstMethodPtr< SourceType >)
Description
Constructs by binding an arbitrary function that will be called to generate this attribute's value on demand. After binding, the attribute will no longer have a value that can be accessed directly, and instead the bound function will always be called to generate the value.
| Name | TAttribute |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Attribute.h |
| Include Path | #include "Misc/Attribute.h" |
template<class SourceType>
TAttribute
(
TSharedRef < SourceType > InUserObject,
typename FGetter::template TConstMethodPtr< SourceType > InMethodPtr
)
Parameters
| Name | Remarks |
|---|---|
| InUserObject | Shared Pointer to the instance of the class that contains the member function you want to bind. The attribute will only retain a weak pointer to this class. |
| InMethodPtr | Member function to bind. The function's structure (return value, arguments, etc) must match IBoundAttributeDelegate's definition. |
TAttribute(SourceType *, typename FGetter::template TConstMethodPtr< SourceType >)
Description
Constructs by binding an arbitrary function that will be called to generate this attribute's value on demand. After binding, the attribute will no longer have a value that can be accessed directly, and instead the bound function will always be called to generate the value.
| Name | TAttribute |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Attribute.h |
| Include Path | #include "Misc/Attribute.h" |
template<class SourceType>
TAttribute
(
SourceType * InUserObject,
typename FGetter::template TConstMethodPtr< SourceType > InMethodPtr
)
Parameters
| Name | Remarks |
|---|---|
| InUserObject | Shared Pointer to the instance of the class that contains the member function you want to bind. The attribute will only retain a weak pointer to this class. |
| InMethodPtr | Member function to bind. The function's structure (return value, arguments, etc) must match IBoundAttributeDelegate's definition. |
TAttribute(const FGetter &, bool)
Description
Special explicit constructor for TAttribute::Create()
| Name | TAttribute |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Attribute.h |
| Include Path | #include "Misc/Attribute.h" |
TAttribute
(
const FGetter & InGetter,
bool bExplicitConstructor
)
TAttribute(FGetter &&, bool)
Description
Special explicit constructor for TAttribute::Create()
| Name | TAttribute |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Attribute.h |
| Include Path | #include "Misc/Attribute.h" |
TAttribute
(
FGetter && InGetter,
bool bExplicitConstructor
)