Search Issue Tracker
Won't Fix
Won't Fix in 1.19.X
Votes
0
Found in [Package]
1.19.19
Issue ID
ADDR-2663
Regression
No
[Addressables] Unable to load Sprite from Sprite Atlas Addressable when two Sprite Atlas Addressables are using the same Label
How to reproduce:
1. Open the attached "1404851_Repro.zip" project
2. Open the Scene "SampelScene"
3. Open the Addressables Group (Window->Asset Management->Addressables->Group)
4. Build the Addressables (In Addressables group top-right Build->New Build->Default Build Script)
5. Enter the Play Mode
Expected results: No errors are thrown
Actual results: "System.Exception: Sprite failed to load for location sprite\[Capsule]." error is thrown in the Console
Reproducible with: 1.19.19 (2019.4.37f1, 2020.3.33f1, 2021.2.19f1, 2022.1.0b16, 2022.2.0a10)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- ScrollView speed is slower when entering Play mode
- UI Builder elements disappear and "Semantic - Unknown template name" error appears when changes to "Template" parameter are saved
- Renderers outside Light Probe hull use incorrect Ambient Probe values when "Renderer Light Probe Selection" is set to "Use Ambient Probe" and "Light Probes" on Mesh is set to "Blend Probes"
- ArgumentNullException error occurs when selecting a Camera in the Hierarchy with the Scene view open
- Clicking 'Open Editor Log' through the Console fails to open redirected Logs when relative Log files exist outside of the Project root
Resolution Note:
There are no fixes planned for this Bug
Resolution Note (1.19.X):
As designed. See the Note: "You can use a label or other type of key when you call LoadAssetAsync, not just an address. However, if the key resolves to more than one asset, only the first asset found is loaded. For example, if you call this method with a label applied to several assets, Addressables returns whichever one of those assets that happens to be located first"
https://docs.unity3d.com/Packages/com.unity.addressables@1.19/manual/LoadingAddressableAssets.html#loading-a-single-asset. In this case Atlas B is the first asset located. It doesn't contain a sprite with an address named "sprite[Circle]", so loading the sprite fails.