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
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
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.