Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Missing components when addressables are loaded in different project

Discussion in 'Addressables' started by tonemcbride, Nov 16, 2022.

  1. tonemcbride

    tonemcbride

    Joined:
    Sep 7, 2010
    Posts:
    1,077
    Hi,

    This might have been gone over already but I can't find anything on the forum that helped with my specific issue.
    I have a project that generates addressables which I then upload to a server. In my separate game project I download this addressable catalog and load the assets which works fine.

    Unfortunately the components are now missing from the loaded assets. Should this work if the same component code is in the main game project as it is in the project that creates the addressables? I've made sure the component scripts are identical and have the same meta guids but they just don't show up after loading.

    I tried enabling the 'Monoscript Bundle Naming Prefix' but that didn't help. I also thought it might work if I set it to 'custom' and then changed the custom prefix to the name of my game project.

    Any help would be appreciated!
     
  2. tonemcbride

    tonemcbride

    Joined:
    Sep 7, 2010
    Posts:
    1,077
    I've fixed this now - in case anybody else runs into this problem it turned out to be an issue with assembly definitions (asmdef files). The components were in different assembly definitions in each projects, once I moved them into the base assembly it works ok.