I’m getting this warning message that I would like to get rid of:
While it is true I tried using System.Windows.Forms; it has been commented out since. Searching entire solution for “forms” in mono finds nothing relevant. I tried removing the “using” line instead of just commenting it out but it didn’t help. Another possibility I considered was that it’s referenced in a DLL. However I tried removing only DLL (uLink) from project and that didn’t help either.
In short I am out of ideas where this alleged reference resides.
I’m having exactly the same problem… Did you find any solutions ?
I’m not using System.Windows.Forms at all but the warnings are there even if I put all my code in commentary. They only show up after the build and I have no problem running my application in the unity editor.
Yes, I have all the EmguCV library dll files and System.Drawing.dll that I need for EmguCV in my project. I have also another warning that concerns OnMouse_events but I don’t use that either…
Those dlls are working fine in the Unity editor and in PC/MAC/Linux Standalone but at the moment, my application doesn’t work on Android, probably because of the warnings I have.
Has Anyone solved this problem? I got this problem too… And I’ve spent 1 whole day solving it, still not get resolved.
My situation is:
I was trying to use System.Windows.Forms.dll in my Unity project, but I got this problem when I build it and want my app run on my Android Phone. So I noticed that I can not use it. So I delete this dll in my Plugin folder and comment out the using import in my code. But I still got this error.
Is there anyone know how to solve this ? In short I am really out of ideas
Hi Dantus, thank you very much for you reply. I’ve found the reason is caused by my Android SDK version incompatible.
I’ve changed to another Android SDK. and now I can build and run perfectly on my Android Phone.
Hope this could help anyone who may encounter this problem too.
We know it doesn’t work on all platforms, but why is Unity saying it doesn’t work on the StandaloneWindows platform? It should work, and it does given the right import settings.
Having the same issue when trying to build to WebGL only (PC works fine, and Android too I believe), no idea where Windows.Forms was used in code, I never added it anywhere myself in code (so it must be in a DLL from some asset I’m using or something) and am having trouble tracking it down. I wish the warning gave a clue to where it was.
I am new with Unity and I have a problem with this topic.
Last week I built and run an App for Augmented Reality with Unity + Vuforia without any problems and it works fine with the mobile device.
But this week I’ve tried to build and run a new App version with some design changes and this message appears when compiling.
“System.Windows.Forms.dll assembly is referenced by user code, but is not supported on Android platform. Various failures might follow.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)”
Unity builds the App but when I try to run it with the mobile device the camera doesn’t works. It shows a blue-brown background.
I’ve searched into forums and I am not able to find the solution.