简体   繁体   English

Unity 2019项目中的System.Drawing问题

[英]System.Drawing problem in Unity 2019 project

I am trying to use System.Drawing.Image and System.Drawing.Bitmap classes in Unity 2019 project.我正在尝试在 Unity 2019 项目中使用System.Drawing.ImageSystem.Drawing.Bitmap类。

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'.由于错误,将不会加载程序集“Assets/Plugins/Emgu.CV/Emgu.CV.Bitmap.dll”:无法解析参考“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). Api 兼容性级别在项目设置(播放器)中设置为 .NET 4.x。

System.Drawing.dll itself is present in Plugins/SystemDll. System.Drawing.dll 本身存在于 Plugins/SystemDll 中。

I think you don't have the Emgu inside unity because it seems that you are missing the openCV libraries.我认为您没有统一内部的Emgu ,因为您似乎缺少openCV库。

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如果它仍然不起作用,您可以尝试在此处找到与您的问题类似的解决方案,也许这是一个简单的修复

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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