2016年2月19日金曜日

Unity エラー Can't add

unityでスクリプトをオブジェクトに追加しようとしたところ以下のエラーが発生。
Can't add script component 'HTLMMu' because the script class cannot be found. Make sure that there are no compile errors and that the file name and class name match.
スクリプトのクラスが見つからないため、スクリプトコンポーネント「スクリプトファイル」を追加することはできません。何のコンパイルエラーとファイル名とクラス名が一致することをがないことを確認してください。

原因

よく見たらスクリプトファイル名が一文字違いました。。