強火で進め

このブログではプログラム関連の記事を中心に書いてます。

「There are inconsistent line endings 〜」という警告

PDFに記載されていたサンプルコードを貼り付けたら以下の様な警告が表示されました。

There are inconsistent line endings in the 'Assets/NewBehaviourScript 1.js' script. Some are Mac OS X (UNIX) and some are Windows.
This might lead to incorrect line numbers in stacktraces and compiler errors. Unitron and other text editors can fix this using Convert Line Endings menu commands.

説明どおり、エディタのメニューから「Line Endings」を選択して解決。