I want to include some sprites into an Addressable asset bundle that are not referenced in that scene and I don’t want them to have their own “addressable” address…
is there a way to do that or configure that in addressables or do I have to add a reference for them in order to include them to this scene bundle ?
its not that I dont want to make them addressables as I just not sure if thats my best option…
Its a list of icons (about 40+) that I want to instantiate only on one scene, so I’m not really worried about memory duplication but I feel thats not so “elegant” way to do this…
I guess there is not way around making it as an addressable group unless someone have better solution
If you use them in scene that is not addressable you could make gameobject with component “iconHandler” which has a reference list of Icons.
You than can access it and get icon by index.
If scene is not addressable there will be no
duplications. But this icons will be always loaded.
Plus you will need to create an extra component and some how find or reference it.
Creating addressable group called “AssetsForThatSpecificScene” seems like the best option for me.
Scenes and assets cannot be explicitly contained in the same bundle - Scene bundles are a bit special - they can contain multiple senes but not any explicit assets (by this i mean assets that are going to be loaded separately from the scene). Assets (actually just objects) will get pulled into scene bundles due to direct references. The solution that @TextusGames suggested should work fine since you are only using the sprites in that scene.