From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Format:Godot variant binary encoding" |
|---|
| claim | "Variant::Type numbering written in byte 0 of the 32-bit header (recent Godot 4 master)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Godot variant binary encoding" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "Variant::Type" |
|---|
| values | | 0 | "NIL" |
|---|
| 1 | "BOOL" |
|---|
| 2 | "INT" |
|---|
| 3 | "FLOAT" |
|---|
| 4 | "STRING" |
|---|
| 5 | "VECTOR2" |
|---|
| 6 | "VECTOR2I" |
|---|
| 7 | "RECT2" |
|---|
| 8 | "RECT2I" |
|---|
| 9 | "VECTOR3" |
|---|
| 10 | "VECTOR3I" |
|---|
| 11 | "TRANSFORM2D" |
|---|
| 12 | "VECTOR4" |
|---|
| 13 | "VECTOR4I" |
|---|
| 14 | "PLANE" |
|---|
| 15 | "QUATERNION" |
|---|
| 16 | "AABB" |
|---|
| 17 | "BASIS" |
|---|
| 18 | "TRANSFORM3D" |
|---|
| 19 | "PROJECTION" |
|---|
| 20 | "COLOR" |
|---|
| 21 | "STRING_NAME" |
|---|
| 22 | "NODE_PATH" |
|---|
| 23 | "RID" |
|---|
| 24 | "OBJECT" |
|---|
| 25 | "CALLABLE" |
|---|
| 26 | "SIGNAL" |
|---|
| 27 | "DICTIONARY" |
|---|
| 28 | "ARRAY" |
|---|
| 29 | "PACKED_BYTE_ARRAY" |
|---|
| 30 | "PACKED_INT32_ARRAY" |
|---|
| 31 | "PACKED_INT64_ARRAY" |
|---|
| 32 | "PACKED_FLOAT32_ARRAY" |
|---|
| 33 | "PACKED_FLOAT64_ARRAY" |
|---|
| 34 | "PACKED_STRING_ARRAY" |
|---|
| 35 | "PACKED_VECTOR2_ARRAY" |
|---|
| 36 | "PACKED_VECTOR3_ARRAY" |
|---|
| 37 | "PACKED_COLOR_ARRAY" |
|---|
| 38 | "PACKED_VECTOR4_ARRAY" |
|---|
|
|---|
| underlying_type | "u8" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "enum Type" |
|---|
| repo | "https://github.com/godotengine/godot" |
|---|
| commit | "81ab961f91066a63bcbf3ec340962bb1a1ada558" |
|---|
| path | "core/variant/variant.h" |
|---|
| lines | "97-147" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T19:22:23.501Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T09:47:17.621Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read variant.h at 81ab961f enum Type: NIL..PACKED_VECTOR4_ARRAY in order gives 0-38 (VARIANT_MAX = 39), matching all 39 values; list complete." |
|---|
| notes | "Declaration order defines the numbers; the source comment says the order is load-bearing." |
|---|
|
|
|---|