본문 바로가기

-----Unity 3d----/Error

[Unity3d][문제해결]There are inconsistent line endings in the 'xxx/xxx.cs' script. Some are Mac OS X (UNIX) and some are Windows.....


  ♬Problem



사진이 잘 보이지 않군요. 다시 적어봅니다.


 There are inconsistent line endings in the 'Assets/Scripts/HUD/HUD_controller.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.


이상없이 컴파일은 되지만 찝찝합니다.


 ♬Solution


LineEnding Error로 파일을 Save As로 명확하게 LineEnding을 지적해야 오류가 해결됩니다. 

참고: http://en.wikipedia.org/wiki/Newline (영문)


1) Mono develop으로 작업할 경우



2) Visual Studio로 작업할 경우

File > Advanced Save Options... > Line Endings을 Windows(CR LF)로 변경합니다.