Unity "Feature 'out variable declaration' cannot be used because it is not part of the C# 4.0"


Unity2017升級到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】即可解決問題。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM