コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】UnassignedReferenceException: The variable XXXX of YYYY has not been assigned.

UnassignedReferenceException: The variable XXXX of YYYY has not been assigned.
You probably need to assign the XXXX variable of the YYYY script in the inspector.

Inspector でゲームオブジェクトやコンポーネントの参照を指定していない値を
スクリプトで使用しようとすると上記のエラーが発生します

f:id:baba_s:20150131133253p:plain