【Unity】“Feature `out variable declaration' cannot be used because it is not part of the C# 4.0” 错误

转载自:https://blog.csdn.net/HarryXYC/article/details/89462647

Unity2018升级到2019后,脚本全都不可用,报错后半段部分内容为“Feature `out variable declaration' cannot be used because it is not part of the C# 4.0 language specification”。
解决方案是:

在Unity选择【Edit】——【Project Settings】——【Player】——【Other Settings】——【Configuration】大项下的【Scripting Runtime Version】选项选择【.NET 4.x Equivalent】即可解决问题。
 

发布了102 篇原创文章 · 获赞 91 · 访问量 54万+

猜你喜欢

转载自blog.csdn.net/sinat_32034679/article/details/98480201