Hi all!
I have a non-addressable scene that has several prefabs in it. Let’s say I have 5 mining rock prefabs in the scene, which are addressable. When opening the scene in game, the event viewer shows 5 refs for the object instead of one which could’ve been used 5 times.
Is this optimizable or just how addressable prefabs within a scene works?
Your scene should be addressable, honestly. Thus the dependency for the prefabs will be loaded in as the scene is loaded (no need to load the rocks via addressables).
FYI if you plan to use addressables prepare to build all your content into addressable groups.
Spiney is correct. Addressable content need to do Addressable else they are copied.
All Player content builds, and all Addressable content builds do not know about each other. So if you have assets used between them, they will be copied.
you can use the analyze tools “Check scene to addressables duplicates” - Analyze tool | Addressables | 1.21.21 to see what is duplicated and give you an idea on what you can do.
The simplest way to resolve this is to have a “bootup scene” in the Player. Which then loads Addressable scenes. Therefore all your content is done using one build.
1 Like