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
- Skinned Mesh Renderer with multiple Animator Components does not render when "Optimize Game Objects" is enabled
- [iOS]Certain characters are not displayed when using iOS devices with 18 OS and newer
- Trees do not render in 'Unity Terrain - URP Demo Scene'
- Silent crash when clicking in Scene View in a specific project
- The Player renders black on a Quest headset when MSAA, Post Processing, and Spacewarm depth submission are enabled
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.