EVariantTypes

Enumerates the built-in types that can be stored in instances of [FVariant](API\Runtime\Core\Misc\FVariant).

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Misc/Variant.h"

Syntax

enum EVariantTypes
{
    Empty              = 0,
    Ansichar           = 1,
    Bool               = 2,
    Box                = 3,
    BoxSphereBounds    = 4,
    ByteArray          = 5,
    Color              = 6,
    DateTime           = 7,
    Double             = 8,
    Enum               = 9,
    Float              = 10,
    Guid               = 11,
    Int8               = 12,
    Int16              = 13,
    Int32              = 14,
    Int64              = 15,
    IntRect            = 16,
    LinearColor        = 17,
    Matrix             = 18,
    Name               = 19,
    Plane              = 20,
    Quat               = 21,
    RandomStream       = 22,
    Rotator            = 23,
    String             = 24,
    Widechar           = 25,
    Timespan           = 26,
    Transform          = 27,
    TwoVectors         = 28,
    UInt8              = 29,
    UInt16             = 30,
    UInt32             = 31,
    UInt64             = 32,
    Vector             = 33,
    Vector2d           = 34,
    Vector4            = 35,
    IntPoint           = 36,
    IntVector          = 37,
    NetworkGUID        = 38,
    Custom             = 0x40,
}

Values

Name

Description

Empty

Ansichar

Bool

Box

BoxSphereBounds

ByteArray

Color

DateTime

Double

Enum

Float

Guid

Int8

Int16

Int32

Int64

IntRect

LinearColor

Matrix

Name

Plane

Quat

RandomStream

Rotator

String

Widechar

Timespan

Transform

TwoVectors

UInt8

UInt16

UInt32

UInt64

Vector

Vector2d

Vector4

IntPoint

IntVector

NetworkGUID

Custom

Remarks

Enumerates the built-in types that can be stored in instances of FVariant.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback