问题
下面是显示在控制台中的警告:
warning CS0219: The variable `___' is assigned but its value is never
used
原因
CS0219警告的出现的原因是一个原生的变量(在方法中被创建的)被赋值后,但是这个变量值没有在项目中的任何脚本中被使用。
t.
这是示例显示的错误:
warning CS0219: The variable `___' is assigned but its value is never
used
解决方案
The error CS0219 is resolved by using the variable in the script or by deleting it entirely.
更多信息
https://msdn.microsoft.com/en-us/library/4kycwe2x(v=vs.90).aspx