Navigation
API > API/Runtime > API/Runtime/Serialization
Flags controlling the behavior of struct serializer backends.
| Name | EStructSerializerBackendFlags |
| Type | enum |
| Header File | /Engine/Source/Runtime/Serialization/Public/IStructSerializerBackend.h |
| Include Path | #include "IStructSerializerBackend.h" |
Syntax
enum EStructSerializerBackendFlags
{
None = 0,
WriteTextAsComplexString = 1<<0,
WriteByteArrayAsByteStream = 1<<1,
WriteCborStandardEndianness = 1 << 2,
WriteLWCTypesAsFloats = 1 << 3,
Legacy = None,
LegacyUE4 = WriteTextAsComplexString | WriteByteArrayAsByteStream | WriteLWCTypesAsFloats,
Default = WriteTextAsComplexString | WriteByteArrayAsByteStream,
}
Values
| Name | Remarks |
|---|---|
| None | No special behavior. |
| WriteTextAsComplexString | Write text in its complex exported format (eg, NSLOCTEXT(...)) rather than as a simple string. |
| WriteByteArrayAsByteStream | Write TArray |
| WriteCborStandardEndianness | Force the CBOR backend to write CBOR data in big endian (CBOR compliant endianness), available from 4.25. |
| WriteLWCTypesAsFloats | Support backward compatibility for LWC types by writing double properties as floats. |
| Legacy | Legacy settings for backwards compatibility with code compiled prior to 4.22. |
| LegacyUE4 | Legacy settings for backwards compatibility with code compiled for 4.25 up to UE5. |
| Default | Default settings for code compiled for 5.0 onwards. |