Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Misc/Attribute.h |
Include | #include "Misc/Attribute.h" |
Syntax
template<typename ObjectType>
class TAttribute
Remarks
Attribute object
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
TAttribute () |
Default constructor. | |
![]() |
TAttribute
(
const OtherType& InInitialValue |
Construct implicitly from an initial value | |
![]() |
TAttribute
(
ObjectType&& InInitialValue |
Construct implicitly from moving an initial value | |
![]() |
TAttribute
(
TSharedRef< SourceType > InUserObject, |
Constructs by binding an arbitrary function that will be called to generate this attribute's value on demand. | |
![]() |
TAttribute
(
SourceType* InUserObject, |
Constructs by binding an arbitrary function that will be called to generate this attribute's value on demand. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Bind
(
SourceType* InUserObject, |
Binds an arbitrary function that will be called to generate this attribute's value on demand. |
![]() |
void | Bind
(
TSharedRef< SourceType > InUserObject, |
Binds an arbitrary function that will be called to generate this attribute's value on demand. |
![]() |
void | Binds an arbitrary function that will be called to generate this attribute's value on demand. | |
![]() |
void | Binds an arbitrary function that will be called to generate this attribute's value on demand. | |
![]() |
void | BindRaw
(
SourceType* InUserObject, |
Binds an arbitrary function that will be called to generate this attribute's value on demand. |
![]() |
void | BindStatic
(
TIdentity_T< typename FGetter::template TFuncPtr< VarTypes... > > InFuncPtr, |
Binds an arbitrary function that will be called to generate this attribute's value on demand. |
![]() |
void | BindUFunction
(
SourceType* InUserObject, |
Binds an arbitrary function that will be called to generate this attribute's value on demand. |
![]() |
void | BindUObject
(
SourceType* InUserObject, |
Binds an arbitrary function that will be called to generate this attribute's value on demand. |
![]() ![]() |
TAttribute< ObjectType > | Creates an attribute by binding an arbitrary function that will be called to generate this attribute's value on demand. | |
![]() ![]() |
TAttribute | Static: Creates an attribute that's pre-bound to the specified 'getter' delegate | |
![]() ![]() |
TAttribute< ObjectType > | ||
![]() ![]() |
TAttribute | CreateLambda
(
LambdaType&& InCallable, |
Helper function for creating TAttributes from a lambda TAttribute |
![]() ![]() |
TAttribute | Helper function for creating TAttributes from a const member function pointer, accessed through a raw pointer | |
![]() ![]() |
TAttribute | Helper function for creating TAttributes from a const member function pointer, accessed through a weak pointer to the shared object | |
![]() ![]() |
TAttribute | CreateStatic
(
TIdentity_T< typename FGetter::template TFuncPtr< VarTypes... > > InFuncPtr, |
Creates an attribute by binding an arbitrary function that will be called to generate this attribute's value on demand. |
![]() ![]() |
TAttribute | CreateStatic
(
FuncPtrType&& InFuncPtr, |
Creates an attribute by binding an arbitrary function that will be called to generate this attribute's value on demand. |
![]() ![]() |
const ObjectType & | Get
(
const ObjectType& DefaultValue |
Gets the attribute's current value. |
![]() ![]() |
const ObjectType & | Get () |
Gets the attribute's current value. Assumes that the attribute is set. |
![]() ![]() |
const FGetter & | GetBinding () |
Gets the attribute's 'getter' which can be bound or unbound |
![]() ![]() |
bool | IdenticalTo
(
const TAttribute& InOther |
Is this attribute identical to another TAttribute. |
![]() ![]() |
bool | IsBound () |
Checks to see if this attribute has a 'getter' function bound |
![]() ![]() |
bool | IsSet () |
Was this TAttribute ever assigned? |
![]() |
void | Set
(
const OtherType& InNewValue |
Sets the attribute's value |
![]() |
void | Set
(
ObjectType&& InNewValue |
Sets the attribute's value |
![]() |
TVariant< ObjectType, FGetter > | Steal () |
Move the attribute's 'getter' or the attribute's `Value_ and reset the attribute. |
Typedefs
Name | Description |
---|---|
FGetter | Attribute 'getter' delegateObjectType GetValue() const |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
TAttribute | Attribute's Getter should be const. | |
![]() ![]() |
TAttribute | Attribute's Getter should be const. |