The most important data type in Godot.
    public static class 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.

Inheritance Chain

Inner Types

Operator

Name Value Description
Equal    
NotEqual    
Less    
LessEqual    
Greater    
GreaterEqual    
Add    
Subtract    
Multiply    
Divide    
Negate    
Positive    
Module    
StringConcat    
ShiftLeft    
ShiftRight    
BitAnd    
BitOr    
BitXor    
BitNegate    
And    
Or    
Xor    
Not    
In    
Max    

Type

Name Value Description
Nil    
Bool    
Int    
Real    
String    
Vector2    
Rect2    
Vector3    
Transform2d    
Plane    
Quat    
Aabb    
Basis    
Transform    
Color    
NodePath    
Rid    
Object    
Dictionary    
Array    
RawArray    
IntArray    
RealArray    
StringArray    
Vector2Array    
Vector3Array    
ColorArray    
Max    
Tags: