Search Issue Tracker
Fixed
Won't Fix in 1.19.X
Fixed in 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
- [OpenGLES][XR] Zooming in on the camera's URP opaque texture causes "double vision" on Quest in OpenGLES3
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
Resolution Note:
There are no fixes planned for this Bug
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.