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
- [Happy Harvest] #ThunderLabel text is "\u26C8" instead of "⛈"
- Warning “New Sprite Atlas: There is a mismatch in secondary textures of sprites compared to WhiteUnit, wasting texture space and potentially break draw call batching. Affected Sprites are (Flag)“ is thrown when packing Atlas with Sprite Atlas V2
- Sprite Editor dropdown text is cut-off for options with longer text
- Sprite Editor can't be scrolled horizontally using the trackpad gesture
- BRG picking skips BatchDrawCommandProcedural when selecting the GameObject in the scene
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.