简体   繁体   中英

System.Drawing problem in Unity 2019 project

I am trying to use System.Drawing.Image and System.Drawing.Bitmap classes in Unity 2019 project.

But I receive the following error:

Assembly 'Assets/Plugins/Emgu.CV/Emgu.CV.Bitmap.dll' will not be loaded due to errors: Unable to resolve reference 'System.Drawing.Common'. Is the assembly missing or incompatible with the current platform?

Could you please help me and advise how to resolve this error?

Api Compatibility Level is set to .NET 4.x in Project Settings (Player).

System.Drawing.dll itself is present in Plugins/SystemDll.

I think you don't have the Emgu inside unity because it seems that you are missing the openCV libraries.

If it is still not working you can try to find a solution here that is a problem similar to yours and maybe it's a simple fix

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM