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
- UI Builder can't set a background image to a sprite from a multi-sprite spritesheet in the Resources folder
- Light2D freeform does not render the internal part when rendered in certain shapes
- Using AddCopyPass causes an incorrect merging of passes.
- Negative Enum value is not pasted correctly when copying from another array
- Silent Crash when generating Lightmap UVs for a model with a large object scale
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