Search Unity

What happens with direct references to data in addressables groups.

Discussion in 'Addressables' started by magmagma, May 21, 2019.

  1. magmagma

    magmagma

    Joined:
    Oct 27, 2017
    Posts:
    41
    Hello.

    What happens if there are direct references in a scene to data (textures, prefabs, scriptable objects, etc) that is part of an addressable assets group?

    When making a build, will that data be duplicated? i.e. included in the build but also in the addressables group? (and thus if it is only used as a direct reference, then just wasted on the group?)

    Running the addressables analyzer it didn't find any problems in my test setup.

    Edit: Well I have read a lot more threads that I didn't find before and it looks like what will happen is: The assets get duplicated (they are copied with the scene information to the build, and they are also copied to the asset bundles) and then the scene loads the copied version, and the asset bundle is not used. (I suspected this but I wanted to confirm)
     
    Last edited: May 22, 2019
    davidrochin and phobos2077 like this.
  2. davidrochin

    davidrochin

    Joined:
    Dec 17, 2015
    Posts:
    72
    Thank you for writing about your findings