knah / Il2CppAssemblyUnhollower

A tool to generate Managed->IL2CPP proxy assemblies
GNU Lesser General Public License v3.0
503 stars 87 forks source link

Custom Components in Asset Bundles without fields #38

Closed ds5678 closed 3 years ago

ds5678 commented 3 years ago

This pull request adds support for having Custom Components in Asset Bundles. Currently, any fields on the component will have their default value as defined in the mono assembly.

In order to use a custom component:

  1. Add a dummy script for your component into Unity.
  2. Apply the component to your intended objects in Unity and build the asset bundle.
  3. At runtime, register your component with RegisterTypeInIl2Cpp before loading any objects from the asset bundle.