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
- Crash on RaiseException when importing a specific asset
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
Resolution Note:
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-36836