Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Misc/Attribute.h |
Include |
#include "Misc/Attribute.h" |
template<typename ObjectType>
class TAttribute
Attribute object
Name | Description | |
---|---|---|
|
TAttribute() |
Default constructor. |
|
TAttribute ( |
Construct implicitly from an initial value |
|
TAttribute ( |
Construct implicitly from moving an initial value |
|
TAttribute ( |
Constructs by binding an arbitrary function that will be called to generate this attribute's value on demand. |
|
TAttribute ( |
Constructs by binding an arbitrary function that will be called to generate this attribute's value on demand. |
Name | Description | ||
---|---|---|---|
|
Bind ( |
Binds an arbitrary function that will be called to generate this attribute's value on demand. |
|
|
Bind ( |
Binds an arbitrary function that will be called to generate this attribute's value on demand. |
|
|
Bind ( |
Binds an arbitrary function that will be called to generate this attribute's value on demand. |
|
|
Bind ( |
Binds an arbitrary function that will be called to generate this attribute's value on demand. |
|
|
BindRaw ( |
Binds an arbitrary function that will be called to generate this attribute's value on demand. |
|
|
BindStatic ( |
Binds an arbitrary function that will be called to generate this attribute's value on demand. |
|
|
BindUFunction ( |
Binds an arbitrary function that will be called to generate this attribute's value on demand. |
|
|
BindUObject ( |
Binds an arbitrary function that will be called to generate this attribute's value on demand. |
|
|
TAttribute< ... |
Create ( |
Creates an attribute by binding an arbitrary function that will be called to generate this attribute's value on demand. |
|
Create ( |
Creates an attribute by binding an arbitrary function that will be called to generate this attribute's value on demand. |
|
|
Create ( |
Static: Creates an attribute that's pre-bound to the specified 'getter' delegate |
|
|
TAttribute< ... |
Create |
|
|
CreateLambda ( |
Helper function for creating TAttributes from a lambda TAttribute |
|
|
CreateRaw ( |
Helper function for creating TAttributes from a const member function pointer, accessed through a raw pointer |
|
|
CreateSP ( |
Helper function for creating TAttributes from a const member function pointer, accessed through a weak pointer to the shared object |
|
|
const Object... |
Get ( |
Gets the attribute's current value. |
|
const Object... |
Get() |
Gets the attribute's current value. Assumes that the attribute is set. |
|
const FGette... |
GetBinding() |
Gets the attribute's 'getter' which can be bound or unbound |
|
IdenticalTo ( |
Is this attribute identical to another TAttribute. |
|
|
IsBound() |
Checks to see if this attribute has a 'getter' function bound |
|
|
IsSet() |
Was this TAttribute ever assigned? |
|
|
Set ( |
Sets the attribute's value |
|
|
Set ( |
Sets the attribute's value |
|
|
TVariant< Ob... |
Steal() |
Move the attribute's 'getter' or the attribute's `Value_ and reset the attribute. |
Name |
Description |
---|---|
FGetter |
Attribute 'getter' delegate ObjectType GetValue() const |
Name | Description | ||
---|---|---|---|
|
CreateRaw ( |
Attribute's Getter should be const. |
|
|
CreateSP ( |
Attribute's Getter should be const. |