Struct Variant

A Variant takes up only 20 bytes and can store almost any engine datatype inside of it. Variants are rarely used to hold information for long periods of time, instead they are used mainly for communication, editing, serialization and moving data around.

struct Variant ;

Enums

NameDescription
Operator
Type

Aliases

NameDescription
conversionFromGodot function to convert a Godot-compatible type to T
conversionToGodot function to convert T to an equivalent Godot type
DType D type that this Variant implementation uses
InternalType GDNative type that gets passed to the C functions