U3D

スクリプトに一貫性のない行末があります。一部はMacOS X(UNIX)であり、一部はWindowsです。



There Are Inconsistent Line Endings Script



説明

Unity3Dプロジェクトは、コンパイル後にこのような警告をポップアップすることがよくあります。

理由

行末文字が原因です。



The script file created by Unity3D editor ends with 'LF' (Unix platform) MonoDevelop IDE also ends with 'LF' (Unix platform) The files created directly with Visual Studio end with 'CR LF' (Windows platform). The above warning is reported due to inconsistent line feed codes.

解決

CRLF形式の行末文字を一律に使用することをお勧めします。
Unity3Dテンプレートファイルを変更することで、行末文字を変更できます。
Unity installation directoryEditorDataResourcesScriptTemplatesこのディレクトリ内のすべてのファイルの行末文字をCRLFに変更します

上記のディレクトリにあるファイルをNotePad ++で開き、[表示]-> [記号を表示]-> [行末文字を表示]をオンにします。
画像
画像
上図のように、LF行末文字であることが確認できます。



パス:編集->ドキュメント形式の変換-> Windows形式に変換し、保存してから、CRLF行末文字に変換します。
画像