Search Issue Tracker
Fixed
Won't Fix in 1.19.X
Fixed in 1.21.21, 2.1.0
Votes
0
Found in [Package]
1.21.19
2.0.3
Issue ID
ADDR-3616
Regression
No
Addressables Assets are serialized in an arbitrary order when adding to Packed Assets for the second and subsequent times
Reproduction steps:
1. Open the attached 'AddressablesSortOrder' project
2. Go to the 'Window -> Asset Management -> Addressables -> Groups'
3. Create a new Addressable Group 'New -> Packed Assets'
4. Drag and drop three number assets from the 'Assets\\AddressablesContent' folder to the 'Packed Assets'
5. 'File -> Save Project'
6. Observe the 'Packed Assets.asset' in the Finder, note that Assets are serialized in ascending order, same as in the Addressables window
7. Remove all Addresables Assets from the 'Packed Assets'
8. Drag and drop three number assets from the 'Assets\\AddressablesContent' folder to the 'Packed Assets'
9. 'File -> Save Project'
10. Observe the 'Packed Assets.asset' in the Finder
Expected result: Addresables Assets are serialized in the same order as they appear in the Addressables window
Actual result: Addresables Assets are serialized in descending order, in the Addressables window they appear in ascending order
Reproducible with: 1.18.19 (2019.4.36f1), 1.19.19 (2019.4.36f1, 2020.3.30f1, 2021.2.14f1, 2022.2.0b11, 2022.2.0a7)
Notes:
- This issue appears only the second and subsequent times the Addressables Assets are added
- Occasionally assets are serialized not in descending order but arbitrarily
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
- Getting a deprecated package for JetBrains Rider pop up when opening or creating a project
- [Android] Volume level of the same audio file is different on Samsung Galaxy Tab A8 between 2023.3.0b3 and 2023.3.0b4
- ‘Expected end of value’ warning occurs when a property declaration includes five or more variable references
- Crash on BurstCompilerService::CompileAsync when entering Play mode in a specific scene
- InvalidOperationException when using Game Camera Preview in Scene window with a custom RenderGraph pass
Resolution Note (1.19.X):
Asset entries in an Addressable Group are added to a Dictionary. What gets displayed when you drop assets is the order in which they appear in that Dictionary. Since adding elements to a Dictionary is non-deterministic, we can't control the order they're added. In the future, we may look into sorting on the initial serialization of a Group.