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
- Editor Perforce login fails when Perforce shows a license expiry warning
- Assertion failed error in HDRP builds when enabling STP via script
- FBX Resamples Curves incorrectly when importing FBX files
- ProBuilder GameObject Faces disappear when increasing the Sides Count value
- FileUtil.CopyFileOrDirectory throws IOException when destination parent folder does not exist
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