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
- Prefabs with "Flags" enum properties result in "IndexOutOfRangeException" when trying to commit/revert
- The Camera first person mode in Cameras overlay is greyed out and not clickable when the Editor is restarted with the Game View focused
- Scene View doesn't select the Canvas when it's clicked with the View Tool
- Transform fields are impossible to edit when Inspector window is resized
- Actions in UI Builder Preview mode are not fully reset after exiting the Preview mode
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.