コガネブログ

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

【Unity】The asset bundle 'XXXX' could not be loaded because it references scripts that are not compatible with the currently loaded ones

The asset bundle 'XXXX' could not be loaded because it references scripts that are not compatible with the currently loaded ones. 
Rebuild the AssetBundle to fix this error.

アセットバンドルに含まれるリソースが
プロジェクト内のスクリプトを参照していて
かつアセットバンドルを作成してからスクリプトに変化があった場合
上記のエラーが発生してアセットバンドルの読み込みに失敗します

なので、アセットバンドルに含まれるリソースが
参照しているスクリプトに変更を加える場合は
アセットバンドルを作り直す必要があります

参考サイト様

Asset Bundle mismatch keeps returning. - Unity Answers