Search Issue Tracker
Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.
Postponed
Votes
0
Found in
2019.4
2020.1.5f1
2021.1
Issue ID
1287282
Regression
No
Prefabs with enum elements in a container don't deallocate memory and convert values when changed to type with smaller size
How to reproduce:
1. Open the attached project("serRepro.zip")
2. Open the "MyEnum.cs" script
3. Change base from int to byte
4. Assets > Reimport All
Expected results: In the prefab "Prefab Test" "MyPrefab" has the same element count with the old values
Actual results: In the prefab "Prefab Test" "MyPrefab" the element count has tripled and the new MyEnum values are sliced in from the old allocated memory
Reproducible with: 2019.4.14f1, 2020.1.11f1, 2020.2.0b10, 2021.1.0a4
Could not test with: 2018.4.28f1 (Couldn't downgrade)
Note: Only reproduces when you reimport the prefab
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
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
Resolution Note (2021.1.X):
This will be addressed as a feature request and is currently part of a planned data migration for serialization project