Read Unity IL2CPP metadata
re_il2cppReads Unity IL2CPP global-metadata.dat files to list assemblies, types, methods, MonoBehaviours, and string literals, then writes C# skeletons for rebuilding or porting game assemblies.
Instructions
Reads a Unity IL2CPP global-metadata.dat (metadata versions 24–31; sections are recognised by validating their records, not by fixed offsets): assemblies with type counts, every type with namespace and method names, MonoBehaviours (types with Unity callbacks) and string literals. Writes one C# skeleton per game assembly (namespaces, classes, method names as comments) to rebuild or port from. Method bodies are native code in GameAssembly.dll / libil2cpp.so / the .wasm (re_binary). Encrypted or obfuscated metadata is reported, never decrypted.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file": "<file>"
},
"name": "re_il2cpp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | No | Folder for the C# skeletons (default workspace/il2cpp/<game>). | |
| file | Yes | global-metadata.dat (<Game>_Data/il2cpp_data/Metadata/ or Il2CppData/Metadata in WebGL builds). | |
| limit | No | Max types listed (default 400). | |
| match | No | Only types whose name or methods contain this. | |
| includeSystem | No | Also list Unity/System/mscorlib types (default false). |