SplitScript reference / Il2CppProfile

Il2CppProfile

struct

struct Il2CppProfile

A complete measured or custom IL2CPP memory layout.

All members are required when constructing a custom profile. Unknown optional metadata facts must be written as None; they are never borrowed from another build.

Examples

Choose a measured player layout

let profile = Il2CppProfile.unity2020_2_0f1X64()

Fields

MemberDescriptionAvailable through
assemblyImageTarget byte offset for assembly.image.
assemblyNameTarget byte offset for assembly.name. None means this fact is unavailable.
classDeclaringTarget byte offset for class.declaring_type. None means this fact is unavailable.
classFieldCountTarget byte offset for class.field_count.
classFieldsTarget byte offset for class.fields.
classInstanceSizeTarget byte offset for class.instance_size. None means this fact is unavailable.
classNameTarget byte offset for class.name.
classNamespaceTarget byte offset for class.namespace.
classParentTarget byte offset for class.parent.
classStaticsTarget byte offset for class.static_fields.
fieldNameTarget byte offset for field.name.
fieldStrideTarget byte stride for field.size.
fieldTypeTarget byte offset for field.type_. None means this fact is unavailable.
fieldValueTarget byte offset for field.offset.
genericCachedClassTarget byte offset for generic.cached_class. None means this fact is unavailable.
imageAssemblyNameTarget byte offset for image.assembly_name. None means this fact is unavailable.
imageTypeCountTarget byte offset for image.type_count.
imageTypeStartLocation and storage mode of the image's first type index.
pointerSizeTarget pointer width.
typeDataTarget byte offset for type_.data. None means this fact is unavailable.
typeKindTarget byte offset for type_.kind. None means this fact is unavailable.

Methods

MemberDescriptionAvailable through
unity2018_1_0f1X64Measured UNITY_2018_1_0F1_X86_64; player file version 2018.1.0.30795.
unity2018_1_0f1X86Measured UNITY_2018_1_0F1_X86; player file version 2018.1.0.30795.
unity2018_2_0f2X64Measured UNITY_2018_2_0F2_X86_64; player file version 2018.2.0.30296.
unity2018_2_0f2X86Measured UNITY_2018_2_0F2_X86; player file version 2018.2.0.30296.
unity2018_3_0f1X64Measured UNITY_2018_3_0F1_X86_64; player file version 2018.3.0.9156.
unity2018_3_0f1X86Measured UNITY_2018_3_0F1_X86; player file version 2018.3.0.9156.
unity2019_1_0f2X64Measured UNITY_2019_1_0F2_X86_64; player file version 2019.1.0.11155.
unity2019_1_0f2X86Measured UNITY_2019_1_0F2_X86; player file version 2019.1.0.11155.
unity2020_2_0f1X64Measured UNITY_2020_2_0F1_X86_64; player file version 2020.2.0.8671.
unity2020_2_0f1X86Measured UNITY_2020_2_0F1_X86; player file version 2020.2.0.8671.
unity2022_2_0f1X64Measured UNITY_2022_2_0F1_X86_64; player file version 2022.2.0.56532.
unity2022_2_0f1X86Measured UNITY_2022_2_0F1_X86; player file version 2022.2.0.56532.
unity6000_5_0f1X64Measured UNITY_6000_5_0F1_X86_64; player file version 6000.5.0.46204.
unity6000_5_0f1X86Measured UNITY_6000_5_0F1_X86; player file version 6000.5.0.46204.
unity6000_6_0f1X64Measured UNITY_6000_6_0F1_X86_64; player file version 6000.6.0.63725.
unity6000_6_0f1X86Measured UNITY_6000_6_0F1_X86; player file version 6000.6.0.63725.