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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Add comment