Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc > API/Runtime/Core/Misc/TAttribute > API/Runtime/Core/Misc/TAttribute/Get
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Misc/Attribute.h |
Include | #include "Misc/Attribute.h" |
const ObjectType & Get
&40;
const ObjectType & DefaultValue
&41; const
Remarks
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