Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TAttribute
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Bind
(
const FGetter& InGetter |
Binds an arbitrary function that will be called to generate this attribute's value on demand. | Misc/Attribute.h | |
void Bind
(
FGetter&& InGetter |
Binds an arbitrary function that will be called to generate this attribute's value on demand. | Misc/Attribute.h | |
void Bind
(
TSharedRef< SourceType > InUserObject, |
Binds an arbitrary function that will be called to generate this attribute's value on demand. | Misc/Attribute.h | |
void Bind
(
SourceType* InUserObject, |
Binds an arbitrary function that will be called to generate this attribute's value on demand. | Misc/Attribute.h |
Bind(const FGetter &)
Description
Binds 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 | Bind |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Attribute.h |
| Include Path | #include "Misc/Attribute.h" |
void Bind
(
const FGetter & InGetter
)
Parameters
| Name | Remarks |
|---|---|
| InGetter | The delegate object with your function binding |
Bind(FGetter &&)
Description
Binds 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 | Bind |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Attribute.h |
| Include Path | #include "Misc/Attribute.h" |
void Bind
(
FGetter && InGetter
)
Parameters
| Name | Remarks |
|---|---|
| InGetter | The delegate object with your function binding |
Bind(TSharedRef< SourceType >, typename FGetter::template TConstMethodPtr< SourceType, std::decay_t< VarTypes >... >, VarTypes &&...)
Description
Binds 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 | Bind |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Attribute.h |
| Include Path | #include "Misc/Attribute.h" |
template<class SourceType, typename... VarTypes>
void Bind
(
TSharedRef < SourceType > InUserObject,
typename FGetter::template TConstMethodPtr< SourceType, std::decay_t< VarTypes >... > InMethodPtr,
VarTypes &&... Vars
)
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. |
Bind(SourceType *, typename FGetter::template TConstMethodPtr< SourceType, std::decay_t< VarTypes >... >, VarTypes &&...)
Description
Binds 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 | Bind |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Attribute.h |
| Include Path | #include "Misc/Attribute.h" |
template<class SourceType, typename... VarTypes>
void Bind
(
SourceType * InUserObject,
typename FGetter::template TConstMethodPtr< SourceType, std::decay_t< VarTypes >... > InMethodPtr,
VarTypes &&... Vars
)
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. |