unity脚本因为系统原因报错问题

来源:互联网 发布:沥青抽提试验数据 编辑:程序博客网 时间:2024/06/05 05:25

http://blog.dou.li/There-are-inconsistent-line-endings-in-the-xxx-script-Some-are-Mac-OS-X-UNIX-and-some-are-Windows.html
Q:There are inconsistent line endings in the ‘Assets/ShaderForge/Example Assets/Scripts/SoftNormalsToV
A:
The easiest way to change the line endings without having to modify anything in VS is to go to the File > Advanced Save Options. In the Advanced Save Options window, under Line endings drop down, select the line ending you want to use and click OK. Then save the script again; this will automatically change the line endings in your script when you save it. When you go back into Unity, the error will disappear.
我们这里选择 文件->高级保存选项,行尾选择windows(CR LF)保存即可。