![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <AnalyticsEventAttribute.h>
Public Types | |
| enum class | AttrTypeEnum { String , Number , Boolean , Null , JsonFragment } |
Public Member Functions | |
| template<typename ValueType > | |
| FAnalyticsEventAttribute (FString InName, ValueType &&InValue) | |
| const FString & | GetName () const |
| const FString & | GetValue () const |
| bool | IsJsonFragment () const |
| template<typename ValueType > | |
| void | SetValue (ValueType &&InValue) |
| FAnalyticsEventAttribute () | |
| ~FAnalyticsEventAttribute () | |
| FAnalyticsEventAttribute (const FAnalyticsEventAttribute &RHS) | |
| FAnalyticsEventAttribute (FAnalyticsEventAttribute &&RHS) | |
| FAnalyticsEventAttribute & | operator= (const FAnalyticsEventAttribute &RHS) |
| FAnalyticsEventAttribute & | operator= (FAnalyticsEventAttribute &&RHS) |
| FAnalyticsEventAttribute & | operator+= (const FAnalyticsEventAttribute &RHS) |
| FAnalyticsEventAttribute & | operator+ (const FAnalyticsEventAttribute &RHS) |
| FString | ToString () const |
| void | SwitchToJsonFragment () |
Static Public Member Functions | |
| static bool | IsValidAttributeName (const FString &InName) |
Public Attributes | |
| const FString | AttrName |
| const FString | AttrValueString |
| const double | AttrValueNumber |
| const bool | AttrValueBool |
| const AttrTypeEnum | AttrType |
Struct to hold key/value pairs that will be sent as attributes along with analytics events. All values are actually strings, but we provide a convenient constructor that relies on ToStringForAnalytics() to convert common types.
|
strong |
|
inline |
|
inline |
Default ctor since we declare a custom ctor.
|
inlinedefault |
|
inlinedefault |
Reinstate the default copy ctor because that one still works fine.
|
inline |
Hack to allow copy ctor using an rvalue-ref. This class only "sort of" acts like an immutable class because the const members prevents assignment, which was not intended when this code was changed.
|
inline |
|
inline |
|
inline |
|
inline |
ALlow aggregation of attributes
|
inline |
ALlow aggregation of attributes
|
inline |
Hack to allow assignment. This class only "sort of" acts like an immutable class because the const members prevents assignment, which was not intended when this code was changed.
|
inline |
Hack to allow assignment. This class only "sort of" acts like an immutable class because the const members prevents assignment, which was not intended when this code was changed.
|
inline |
Allow setting value for any type that supports LexToString
|
inline |
Legacy support for old RecordEventJson API. Don't call this directly.
|
inline |
If you need the old AttrValue behavior (i.e. stringify everything), call this function instead.
| const FString FAnalyticsEventAttribute::AttrName |
| const AttrTypeEnum FAnalyticsEventAttribute::AttrType |
| const bool FAnalyticsEventAttribute::AttrValueBool |
| const double FAnalyticsEventAttribute::AttrValueNumber |
| const FString FAnalyticsEventAttribute::AttrValueString |