なえ箱

メモを植えます

Addressablesでシーン読み込んだ後にThe referenced script on this behaviour is missingが出る

この記事をシェアする

Addressablesを試しに使い始めてみたところ、

URP環境でAddressables.LoadSceneAsyncを使ってシーンを読み込んだ後、

The referenced script on this behaviour is missing! がめちゃくちゃログで出てきてしまったので、対処方法をメモ。

The referenced script on this behaviour is missing!

現象

現象はこちらを参照。

forum.unity.com

IssueTracker

IssueTrackerに上がってた。

1.19.19、1.21.2で発生するようなのでちょうど自分のバージョンで発生してる。

issuetracker.unity3d.com

修正しないらしいので、自分で対処するほかないです。

MonoScript Bundle Name Prefix が設定にあるバージョンでのみ発生する?ようです。

修正方法

Window > Asset Management > Addressables > Settings

を開く。

>

MonoScript Bundle Name Prefixを、Disable以外に変更する。

Disable以外に変更

これで解決。お疲れ様でした。