Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TAttribute
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TAttribute Create
(
const FGetter& InGetter |
Static: Creates an attribute that's pre-bound to the specified 'getter' delegate | Misc/Attribute.h | |
static TAttribute Create
(
FGetter&& InGetter |
Static: Creates an attribute that's pre-bound to the specified 'getter' delegate | Misc/Attribute.h | |
static TAttribute< ObjectType > Create
(
TFunction< ObjectType(void)>&& InLambda |
Misc/Attribute.h | ||
static TAttribute< ObjectType > Create
(
SourceType* InUserObject, |
Creates an attribute by binding an arbitrary function that will be called to generate this attribute's value on demand. | Misc/Attribute.h |
Create(const FGetter &)
Description
Static: Creates an attribute that's pre-bound to the specified 'getter' delegate
| Name | Create |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Attribute.h |
| Include Path | #include "Misc/Attribute.h" |
static TAttribute Create
(
const FGetter & InGetter
)
Parameters
| Name | Remarks |
|---|---|
| InGetter | Delegate to bind |
Create(FGetter &&)
Description
Static: Creates an attribute that's pre-bound to the specified 'getter' delegate
| Name | Create |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Attribute.h |
| Include Path | #include "Misc/Attribute.h" |
static TAttribute Create
(
FGetter && InGetter
)
Parameters
| Name | Remarks |
|---|---|
| InGetter | Delegate to bind |
Create(TFunction< ObjectType(void)> &&)
| Name | Create |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Attribute.h |
| Include Path | #include "Misc/Attribute.h" |
static TAttribute < ObjectType > Create
(
TFunction < ObjectType> && InLambda
)
Create(SourceType *, const FName &)
Description
Creates an attribute 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 | Create |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Attribute.h |
| Include Path | #include "Misc/Attribute.h" |
template<class SourceType>
static TAttribute < ObjectType > Create
(
SourceType * InUserObject,
const FName & InFunctionName
)
Parameters
| Name | Remarks |
|---|---|
| InUserObject | Instance of the class that contains the member function you want to bind. |
| InFunctionName | Member function name to bind. |