Hi all!
I have little problem. I try generate some code outside of Assets folder and build it in dll after by AssemblyBuilder api. But I get strange behavior: Entities.ForEach not replaced with generated by IlPostProcessor code. I miss something? Can I launch post processing of assembly by hand?
You can’t really do code gen on a dll. I’m unaware if there is anyway that the code gen could be triggered on an external library.
Its not about do code gen on dll itself. =) I use unity api (https://docs.unity3d.com/2020.1/Documentation/ScriptReference/Compilation.AssemblyBuilder.Build.html) for building generated cs files and expect that it was builded like regular cs file in project.
hmm, i agree in theory that this should work fine. I wonder what stage it fails at.
1 Like