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
- Source Generation with GeneratePropertyBag fails when using reserved keywords as variable names with @ prefix
- Prismatic ArticulationBody moves in opposite direction when using targetVelocity
- Shader Graph skybox material is rendered inccorrectly in builds when "Allow Material Override" or "Cast Shadows" are enabled and the "Deferred" Rendering Path is used
- Object motion is affected by incorrectly added rotation motion when importing animations
- Base class's Context Menu method is called when calling it in the Editor from the child class and the child class overrides this method
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.