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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
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