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
- Reflection problems when unbaked Reflection Probes are present
- Light Explorer columns sorting arrow is too small
- Context menu actions (Collapse All, Expand All, Enable All, Disable All, Remove All, Reset All) do nothing in Volume component
- [Android] Audio volume decreases when returning to the app during screen recording
- Graphical issues are caused by GPU Occlusion Culling when using Amplify Shaders
Resolution Note:
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-36836