Loading from Multiple Projects - Scripts no loaded

Hello there,
We are working on a project with multiple games.
We are creating separate unity projects for each game and then using “Loading from Multiple Projects” concept for loading addressable scene in main project.
Now the issue is, addressable scene content like objects, material, etc. is loading fine but the script is not loading. Also I am getting following error message.
The referenced script on this Behaviour (Game Object ‘’) is missing!
Please note that I am using latest version of addressable.
Can anyone please help us on that?

1 Like

Does your script exists on both projects? I recall that being a limitation

No, Scripts are only in game projects, not main project

I have the same problem using “Loading from Multiple Projects”. Gameobjects and materials load correctly, but scripts don’t. I have tried the solutions that appear in other threads with the topic “missing script reference…” using addressables (example: https://forum.unity.com/threads/the-referenced-script-unknown-on-this-behaviour -is-missing.652861) but nothing works for me. As @Immi , I have scripts only in content (secondary) projects. Does anyone know what could be happening? thanks!

1 Like

In order for Unity to dereference the MonoScripts correctly and load them to memory, they must be included in the main Unity Player binary you’re building.

Not only that, they must share assembly, namespace, and guid.

I’d recommend moving the common scripts you need to a separate repository, with .meta files pre-created, and reference that repository as submodules for the rest of repositories for your other games, that way every Unity project will have the same scripts, with same assembly, namespace and guid.

Hello miguel-ferradans-coherence,

Thank you for answer, i will create small demo and try it out.

Hi @miguel-ferradans-coherence ,

Thanks you. I’ve tried it and it works.

Hello @GGSeT ,
Can you send me demo projects?. so i can also check.

Thank you

Hello @Immi ,

I’m sorry, but I am unable to share projects as it is currently under a non-disclosure agreement (NDA).

Are you still unable to load the scenes correctly due to missing scripts? All I did was copy all the scripts from the child project to the main project (which loads the assetbundles) and I no longer had any missing scripts.

I am using a custom path to download from remote (not CCD). This is the code I had for quick tests (The final code should perhaps include some checks on the state of the asynchronous operation in each case):

void Start()
     {
         Addressables.InitializeAsync().Completed += OnAddressablesInitialized;
     }

     private void OnAddressablesInitialized(AsyncOperationHandle<IResourceLocator> obj)
     {
         Addressables.LoadContentCatalogAsync(urlRemote1, true).Completed += OnCatalogLoaded;
     }
   
     private void OnCatalogLoaded(AsyncOperationHandle<IResourceLocator> obj)
     {
Addressables.LoadSceneAsync("scene");
}

I hope this helps you.