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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Add comment