- Home /
Re-compile C# assemblies
I'm using Mono.Cecil to inject code to the assemblies in my project. However, I want to do the injection before I generate a build and then remove the injected code once the build is finished. Is there a way to recompile the C# assemblies using an Editor script?
Answer by frarees · Mar 27, 2014 at 09:45 AM
Try with UnityEditorInternal.InternalEditorUtility.RequestScriptReload ()
I've tried that but it didn't work. I've also tried re-importing all scripts but no luck. In the end though I realised that I should modify the .dll files from inside the build folder.
These articles can be useful:
Your answer
Follow this Question
Related Questions
Best way to build a Mono assembly? 1 Answer
Distribute terrain in zones 3 Answers
Build game with dll does not work properly 0 Answers
Locking assembly reloading in editor 0 Answers
Standalone build doesn't create gameobjects properly 1 Answer