FVariant::GetValue

Gets the stored value for byte arrays.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/Variant.h

Include

#include "Misc/Variant.h"

Syntax

template<>
TArray< uint8 > GetValue() const

Remarks

Gets the stored value for byte arrays.

Array values are passed straight through as an optimization. Please

that, if you serialize any complex types into arrays and then store them in FVariant, you will be responsible for ensuring byte ordering if the FVariant gets send over the network. To retrieve any value as an array of serialized bytes, use GetBytes() instead.

Returns

The byte array.

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss