↑のアセットをインポートしたらエラーが出ましたという話です。
■開発環境
事象
コンソールに以下のようなエラー文言が表示されていました。
Assets/Standard Assets/Effects/ImageEffects/Scripts/DepthOfField.cs(9,33): error CS0246: The type or namespace name 'PostEffectsBase' could not be found (are you missing a using directive or an assembly reference?) Assets/Standard Assets/Effects/ImageEffects/Scripts/BloomOptimized.cs(9,35): error CS0246: The type or namespace name 'PostEffectsBase' could not be found (are you missing a using directive or an assembly reference?) Assets/Standard Assets/Effects/ImageEffects/Scripts/DepthOfField.cs(55,30): error CS0115: 'DepthOfField.CheckResources()': no suitable method found to override Assets/Standard Assets/Effects/ImageEffects/Scripts/BloomOptimized.cs(42,30): error CS0115: 'BloomOptimized.CheckResources()': no suitable method found to override
原因
エラーが出ているのはImageEffectという部分なのですが、今廃止になってるようです。
代替えとしてLagacy Image EffectというのがAssetStoreからダウンロードできたたらしいのですが、 2022年5月現在ではダウンロードできなくなってました。。
残念。
強制的にエラーを取る
ImageEffectのフォルダを削除するとエラーが消えます。
消しても表示がおかしいといったことは今のところなさそうでした。
あとがき
Unityのアセットは古くなってくるとこういったエラーが出てきますよね。なのでバージョン上げるのが怖いんですよねー。
最後まで見ていただきヘペトナス!
読者登録・Twitterのフォローもお願いします。