This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name the asmdef of your patcher Unity.SOMETHING.Codegen | |
Then edit the asmdef to include | |
"references": [ "Unity.CompilationPipeline.Common.dll" ], | |
I had to use my own Mono.Cecil dlls in the patcher directory, somehow it should be possible to reference the Unity.Cecil.dll etc. | |
Then use some code like this (Note at RpcPostProcessor.Process does the actual work here): | |