FVariant::FVariant

Creates and initializes a new instance from a byte array.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Misc/Variant.h"

Syntax

FVariant
(
    TArray< uint8 > && InArray
)

Remarks

Creates and initializes a new instance from a byte array.

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 sent over the network.

Parameters

Parameter

Description

InValue-

The initial value.

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