Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TAttribute
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 | BindStatic |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Attribute.h |
| Include Path | #include "Misc/Attribute.h" |
template<typename... VarTypes>
void BindStatic
(
TIdentity_T< typename FGetter::template TFuncPtr< VarTypes... > > InFuncPtr,
VarTypes... Vars
)
Parameters
| Name | Remarks |
|---|---|
| InFuncPtr | Function to bind. The function's structure (return value, arguments, etc) must match IBoundAttributeDelegate's definition. |