It works fine in Editor. But after build the release, this function throws exception like below:
TypeLoadException: Could not load type ‘System.IO.InternalBufferOverflowException’ from assembly ‘System.Drawing’.
at System.Drawing.Image.FromFile (System.String filename, Boolean useEmbeddedColorManagement) [0x00000] in :0
at System.Drawing.Image.FromFile (System.String filename) [0x00000] in :0
at DialogMenu.PrintCard () [0x00000] in :0
at DialogMenu.OnGUI () [0x00000] in :0
I have put System.Drawing.Dll from Mono in plugin folder. Is there anything else I am missing in release build?
Thank you in advance for any suggestions!