Search Issue Tracker
Fixed
Votes
0
Found in
2022.3.4f1
2023.1.2f1
Issue ID
UUM-40683
Regression
Yes
Enums are serialized incorrectly when one of their values has an "Obsolete" attribute
Reproduction steps:
1. Open the "IN-44663.zip" project
2. Open “Assets/Scenes/SampleScene”
3. In the Hierarchy window, select the "Test" GameObject
4. In the Inspector window, in the "Test (Script)" Component, select the "Bar" value in the "Should Be Bar" field
5. Open the context menu of the "Test (Script)" Component, click on the "Test" item
Expected result: "Bar" is printed to the Console
Actual result: "RemovedOne" is printed to the Console
Reproducible with: 2022.2.21f1, 2022.3.4f1, 2023.1.2f1
Not reproducible with: 2021.3.27f1, 2022.2.20f1, 2023.2.0a21
Reproducible on: Windows 10
Notes: The Enum in question can be found in the "Assets/Test.cs" file
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
- [Linux] "Error while reading movie" errors are thrown when opening templates
- Standalone profiler process is hidden in macOS dock
- Shader warnings are being thrown after building Mixed Reality Template
- Error is thrown when entering play mode with build profiles docked and standalone profiler open
- The Player hangs when activating another maximized application
Resolution Note:
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-36836