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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note:
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-36836