Expand description
global-metadata.dat: names and the shape of every type, method and field.
Types of fields, parameters and return values are indices into the
Il2CppType table, which lives in the game binary, not in this file.
Three metadata versions are supported:
- v29 (Unity 2021.2 – 2023.x): header entries are
(offset, size)pairs. - v31 (later Unity 2022.3 LTS / 2023.x): identical to v29 except the
method record gained a
returnParameterTokenfield (so each record is 4 bytes larger). The section list, header-entry size and all other record layouts match v29. Implemented from the Il2CppDumper/Il2CppInspector reference layouts; unverified against a real v31 game (none available). - v39 (Unity 6): each header entry also carries a record count, so the
entries are 12 bytes. Several records shrank:
type_definitionsdroppedelement_type_indexand narrowedgeneric_container_index;methodsnarrowed its middle index fields (movingparameter_start);imagesandassemblieswere reordered;generic_parametersnarrowedowner_index. The v39 layout was reverse-engineered and validated against real Unity 6 games (which ship Windows PE binaries, read via pewter’s PE support).
Structs§
- Assembly
Definition - Event
Definition - Field
Default Value - A constant value for a field, stored in the default value data section.
- Field
Definition - Generic
Container - Generic
Parameter - Image
Definition - Metadata
- Method
Definition - Parameter
Definition - Property
Definition - Type
Definition
Type Aliases§
- Type
Definition Index - An index into
Metadata::type_definitions. - Type
Index - An index into the binary’s
Il2CppTypetable.