Navigation
Unreal Engine C++ API Reference > Runtime > Core > Misc > TAttribute > Create
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Misc/Attribute.h |
Include | #include "Misc/Attribute.h" |
template<class SourceType>
static TAttribute< ObjectType > Create
&40;
SourceType &42; InUserObject,
const FName & InFunctionName
&41;
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 |
---|---|
InUserObject | Instance of the class that contains the member function you want to bind. |
InFunctionName | Member function name to bind. |