Search Issue Tracker

Active

Under Consideration for 2.3.X

Votes

3

Found in [Package]

2.3.16

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

Package: Addressables

-

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|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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.