Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc > API/Runtime/Core/Misc/TAttribute > API/Runtime/Core/Misc/TAttribute/CreateStatic
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Misc/Attribute.h |
| Include | #include "Misc/Attribute.h" |
template<typename FuncPtrType, typename... VarTypes>
static TAttribute CreateStatic
(
FuncPtrType && InFuncPtr,
VarTypes... Vars
)
Remarks
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.
Parameters
| Name | Description |
|---|---|
| InFuncPtr | Member function to bind. The function's structure (return value, arguments, etc) must match IBoundAttributeDelegate's definition. |