Hi. If I use IL2CPP as the scripting backend, is it possible for me to inject the C# assemblies with libraries like Mono.Cecil before these assemblies are converted into C++ code? Is there a hook function like OnPostprocessBuild?
There is nothing specific to IL2CPP in this respect. You should have all of the same hooks that Unity provides for the Mono scripting backend as well.
Hmm what about code injection to cpp files after il2cpp? I’d like to fix the cause of Unity.Mathematics being very slow.
Edit
Possible by selecting “Create Visual Studio solution”
OnPostProcessScene callback, in which you can do everything.