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.
Two metadata versions are supported:
- v29 (Unity 2021.2 – 2023.x): header entries are
(offset, size)pairs. - 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.