Search Issue Tracker
Fixed
Fixed in 2.7.2
Votes
3
Found in [Package]
2.6.0
Issue ID
ADDR-3884
Regression
No
“Count mismatch between packables (0) and sprites in Atlas (2).” and other errors when selecting AssetReferenceAtlasedSprite in Variant Sprite Atlas with AddressableSpriteAtlasVariantLoader
Reproduction steps:
1. Open the attached “IN-94762.zip” project
2. Open the “SampleScene”
3. Select the “GameObject” from the Hierarchy
4. Observe the Console
5. In the Inspector, find the “Addresable Sprite Atlas Variant Loader” Script Component
6. In the Sprite property, click on the Object Picker next to the ‘<none>’ reference
7. Select any available image Sprite
8. Observe the Console
Expected result: No errors and the Sprite is selected
Actual result: Reference remains to ‘<none>’ and “Count mismatch between packables (0) and sprites in Atlas (2).”, “Unable to set all of the objects selected subassets” errors
Reproducible with: 2.0.3 (6000.0.39f1, 6000.1.0b7, 6000.2.0a4), 2.3.16 (6000.0.39f1, 6000.1.0b7, 6000.2.0a4)
Not reproducible with: 1.21.12 (2022.3.58f1), 1.23.1 (2022.3.58f1)
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Note:
- A very similar issue was originally reported here and fixed in the 2.3.7 package version of Addressable: https://issuetracker.unity3d.com/issues/exception-indexoutofrangeexception-is-thrown-when-assigning-an-addressable-spriteatlas-to-an-assetreferencesprite-field. Therefore the error is different from 2.0.3 to 2.3.1 package versions, but the issue remains after fix with different errors
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- URP Realtime reflection probes do not update when RenderProbe() is being called once per second
- Addressable terrain shader variants are stripped from the Player
- [iOS] Debug.Log() appears as <private> in Console app
- UI stays in the background when it is disabled in simulator
- A wrong log file is attached when project is launched with a "-logFile" command line argument
Add comment