Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FVariant
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
T GetValue () |
Gets the stored value. | Misc/Variant.h | |
| Gets the stored value for byte arrays. | Misc/Variant.h |
GetValue()
Description
Gets the stored value.
This template function does not provide any automatic conversion between convertible types. The exact type of the value to be extracted must be known.
| Name | GetValue |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Variant.h |
| Include Path | #include "Misc/Variant.h" |
template<typename T>
T GetValue() const
The value.
See Also
GetValue()
Description
Gets the stored value for byte arrays.
Array values are passed straight through as an optimization. Please note 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.
| Name | GetValue |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Variant.h |
| Include Path | #include "Misc/Variant.h" |
template<>
TArray < uint8 > GetValue() const
The byte array.