- Home /
Suddenly warnings are thrown as errors at random in Unity
Since switching to a new computer with VS2015 (from VS2013), Unity3d sometimes suddenly throws harmless warnings (cs0219 & cs0414, i.e. an assigned variable or field that is never used) as errors that block me from compiling. Besides actually "fixing" these warnings there's this dissatisfactory workaround: close unity3d and vs2015 and reopen them again. Then it won't complain about those warnings for a while until it suddenly considers them errors again.
I've read about someone running into this issues because of a virus scanner, is that possible (am using a different one than on old computer (McAffee instead of Avira)?
The VS project's settings have "treat warnings as errors" set to None, so I don't understand why this happens. The seemingly random frequency of when this happens looks suspiciously like an "outside" cause. Any ideas?
running windows 10 and unity 5.0.3
Answer by CinnoMan · Jan 30, 2016 at 11:33 PM
Just to update this:
getting rid of that particular virus scanner seems to have solved the problem for me, so if you run into a similar issue, consider it as an option to try.
Your answer
Follow this Question
Related Questions
Unity Error CS0234 in my Project. Does anyone know how to fix this? 0 Answers
System.Drawing namespace not consistently found (Unity version 5.6.2f1) 2 Answers
Unity 5.5.1 - Weird and conflicting variable never used warning. 2 Answers
vscode - exclude directories from warnings + code style linter 0 Answers
Imported project issues,Imported Project Build Issues 0 Answers