1.
问题:
There are inconsistent line endings in the 'Assets/Scripts/LevelSelect.cs' script. Some are Mac OS X (UNIX) and some are Windows.
This might lead to incorrect line numbers in stacktraces and compiler errors. Many text editors can fix this using Convert Line Endings menu commands.
解决方案:
①:将脚本文件换行编码统一改为“CR LF”。
将Unity安装目录\Editor\Data\Resources\ScriptTemplates目录下的所有文件用VS打开,然后“文件->高级保存选项” 行尾选择“Windows (CR LF)”保存,以后通过Unity3D编辑器创建的文件将默认以“CR LF”换行。
②:在asset目录下创建文本,命名为 mcs.rsp ;写入 -unsafe ;保存重开即可
2.