Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TAttribute
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const ObjectType & Get () |
Gets the attribute's current value. Assumes that the attribute is set. | Misc/Attribute.h | |
const ObjectType & Get
(
const ObjectType& DefaultValue |
Gets the attribute's current value. | Misc/Attribute.h |
Get()
Description
Gets the attribute's current value. Assumes that the attribute is set.
| Name | Get |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Attribute.h |
| Include Path | #include "Misc/Attribute.h" |
const ObjectType & Get() const
The attribute's value
Get(const ObjectType &)
Description
Gets the attribute's current value. The attribute may not be set, in which case use the default value provided. Shorthand for the boilerplate code: MyAttribute.IsSet() ? MyAttribute.Get() : DefaultValue
| Name | Get |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Attribute.h |
| Include Path | #include "Misc/Attribute.h" |
const ObjectType & Get
(
const ObjectType & DefaultValue
) const