Sometime, The warn info are turn into error msg in unity's console, Although we can find the error msg in the end of msg's detail,But when we have a lot of warn, It can't be showed until you fixed most of the warn.So we need to hide the warn infos simplely.
There are some way to do that,
1、you can disable them via a pragma at the top of your script file
#pragma warning disable 0168 // variable declared but not used.
#pragma warning disable 0219 // variable assigned but not used.
#pragma warning disable 0414 // private field assigned but not used.
(when you need to restore,you can do it like this: #pragma warning restore 0168 )
create a file n name it smcs.rsp（gmcs.rsp ,us.rsp). Save this file under your "assets/" folder,just type "-nowarn:168"
1.The problem is often caused by some code trigged InternalErrorException.
2.168 is the numeric part of the warning identifier(CS0168).