Getting "The referenced script (Unknown) on this behaviour is missing" when loading adressable.

Does anyone know how to identify the missing behaviour?

THank

Try setting the “Monoscript bundle naming” setting to anything other than “Disabled” in main addressable settings inspector.

6 Likes

Thank you so much. We had some totally weird bugs with some of our Addressables and I was nearly going to relayout all our groups. Then I discovered your tip and… it just works!

As a reference for others: In addition to the “The references script (Unknown) on this Behaviour is missing!” we got errors like these when loading a scene via addressables:

GameObject (named 'xyz) references runtime script in scene file. Fixing!
GameObject (named 'xyzz') references runtime script in scene file. Fixing!

Setting “Monoscript bundle naming” to “Project Name” fixes the issues for our project.

3 Likes

Thank Phobos, seem to do the job… an other addressable mystery

5 Likes

Thanks a lot for that! You saved my nerves, or rather everything that is left of them at the moment after looking for answers to errors generated by addressables.

Additional thanks to orb_9 for linking to this thread on

2 Likes

There is no “Monoscript bundle naming” setting in my main addressable settings inspector. Using Unity 2021.1.9f1. Any idea where it went?

Which version of Addressables are you using? This option was present in specific versions where I encountered this error.

1.16.19

i had a same problem i went to Edit > Prefrences >Asset Pipline >Directory Monitoring turn it off

2 Likes

Getting this error currently. I’m using two projects, one for making/exporting content and a main source project.

My content seems to load in fine and functions as expected, just with 20 or so of these damn warnings from my content scripts. The assets were originally created in an older project and imported into the content making/exporting project. I think this has something to do with it as my test bundles made in the current project, using the same scripts, don’t output these warnings.

Using Unity 6000.0.19f1 & Addressables 2.2.2.
Monoscript bundle naming is now by default set to Project Name Hash

I’m also getting the same problem using multiple builds. And could not find a fix. I’m using the default value “Project Name Hash” and tried other options without success. Could someone from the team advise please?

Does the code exist across both projects? Addressables groups (aka Asset Bundle) don’t contain the code themselves.

I’m actually building from the same project, setting Groups dynamically per build set. So yes, the code does exists. And I have Code Stripping off in Player Settings.

This used to work just fine with Addressables 1.19.19, but it broke after upgrading to Unity 6 / Addressables 2.4.6 and I can’t figure it out. I’m simply trying to load a ScriptableObject asset (System.Exception: Unable to load asset of type Locations from location Assets/Locations.asset, assuming it’s missing its script) and scenes with some (not all) scripts being missing (The referenced script (Unknown) on this Behaviour is missing!)