There are inconsistent line endings in the 'xxx' script. Some are Mac OS X (UNIX) and some are Windows
来源:互联网 发布:python 拉钩 源代码 编辑:程序博客网 时间:2024/06/06 09:09
警告 1 There are inconsistent line endings in the 'Assets/DubugTest.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. 0 0 解决方案“UnityVS.TestUnityVS”?(1 个项目)
虽然不影响使用,但一堆警告信息着实让人不爽,继续往下看。
用Notepad2的“查看->显示换行编码"查看发现通过unity3d编辑器创建的脚本文件是以"LF"结尾(Unix平台),MonoDevelop IDE创建的也是以“LF”结尾(Unix平台),而直接用Visual Studio创建的文件是以“CR LF”结尾(Windows平台)。由于换行编码不一致导致报以上警告。
解决办法
将脚本文件换行编码统一改为“CR LF”就可以了。
用Visual Studio打开需要修改的文件,然后“文件->高级保存选项” 行尾选择“Windows (CR LF)”保存
将Unity安装目录\Editor\Data\Resources\ScriptTemplates\
目录下的所有文件用上面的方式修改换行编码,以后通过Unity3D编辑器创建的文件将默认以“CR LF”换行,一劳永逸。
参考资料:
http://www.cnblogs.com/sevenyuan/archive/2012/12/06/2805114.html
转载自:http://blog.dou.li/There-are-inconsistent-line-endings-in-the-xxx-script-Some-are-Mac-OS-X-UNIX-and-some-are-Windows.html
- There are inconsistent line endings in the 'xxx' script. Some are Mac OS X (UNIX) and some are Windows
- There are inconsistent line endings in the 'xxx' script. Some are Mac OS X (UNIX) and some are Windo
- There are inconsistent line endings in the 'Assets/Scripts/Test.cs' script. Some are Mac OS X (UNIX)
- There are inconsistent line endings in the "XXX.cs" script
- There are inconsistent line endings in the 'Assets/Scripts/xxx.cs' script.
- The line endings in the following file are not consistent.
- The line endings in the following file are not consistent.
- the line endings in the following file are not consistent.
- Some Oracle products are currently in use. Please stop all Windows NT services and quit applications
- Task 'XXX' not found in root project 'BuildDemo'. Some candidates are: 'dexProductDebug'解决方案.
- Why Are Some OSPF Routes in the Database but Not in the Routing Table?
- There are no datanodes in the cluster
- There are no datanodes in the cluster
- What are some lesser known but useful Unix commands?
- What are some lesser known but useful Unix commands?
- What are some lesser known but useful Unix commands?
- What are some lesser known but useful Unix commands
- The following macros are predefined in OS X:
- unity meta文件
- 文件的基本操作---复制/移动或删除文件
- 【POJ】3268
- Unity删除所有子物体保留父物体的2种方式
- 理解 Linux 中的 关机命令
- There are inconsistent line endings in the 'xxx' script. Some are Mac OS X (UNIX) and some are Windows
- unity3d 获取系统硬件信息
- C# 中获取CPU序列号/网卡mac地址
- C#窗口居中显示
- Hibernate一对一,一对多,多对多
- 将Vuforia程序发布到Windows10系统的基本流程
- C#窗口隐藏/关闭/居中
- C#获取计算机MAC地址
- C#对文本进行简单的写入