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
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
- Deleting multiple Tags throws “NullReferenceException”, and "Retrieving array element that was out of bounds" errors when holding the Enter key
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