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
- Property fields overlap in the Override window when comparing changes
- "Timeflow Animation System" custom package appears twice in the Package Manager
- Sprite Atlas Override for iOS setting remains disabled when saving its change to enabled
- Increased Memory usage when Update Mode 'On Demand' Realtime lights are used and DX12 API is selected
- Shader warnings in URP ShaderGraph when using the Normal From Texture node
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.