knah / Il2CppAssemblyUnhollower

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

Implement support for injecting events #55

Open knah opened 3 years ago

knah commented 3 years ago

I have no idea why this would be useful, but some reflection-based libraries might make use of this. Events might be a bit tricky due to generated delegate types being not-really-delegates, so a managed-side event can't have an IL2CPP delegate type and vice versa. Due to that, this might be non-implementable in general, unless some additional hoops are jumped, similar to those needed for field injection.