Quest 2 Building Issue System.Windows.Forms.dll assembly && OnMouse_ event handlers
System.Windows.Forms.dll assembly is referenced by user code, but is not supported on Android platform. Various failures might follow. UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()
Game scripts or other custom code contains OnMouse_ event handlers. Presence of such handlers might impact performance on handheld devices. UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()
I see these errors when I build on Quest 2 (Adroid). These warnings were not seen, but it suddenly appeared.
I am using 2021.1.0f1 version and playing in editing mode is fine. Building is fine too but it has lots of errors when I play in quest 2.
My API setting is set to LV29 Android 10, but it has same issue when I use minimum to mashmallow. Also use Net 4.X.
It worked totally fined previously but I am not sure why it suddenly is not working.
Please help if anyone know about this issues.
Thank you.
Your answer
![](https://koobas.hobune.stream/wayback/20220613032137im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity builds sample scene without it being told to do so. 0 Answers
I make Sniper FPS game and Android build it but it slow how i fix it 1 Answer
I am having trouble building the project for android 0 Answers
Unity beta 5.5 not building? 1 Answer
Problem Building game on Android smartphone- Black screen and back to menu android. 0 Answers