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
- NullReferenceException is thrown when selecting a Diffusion Profile
- Colliders of GameObject with Rigidbody component fail to collide with another GameObject when Rigidbody becomes Kinematic
- Shader cache uploads occur when the "Upload" parameter is disabled in the Cache Server settings
- "ApplySingleProperty clear overrides error" error when applying SerializedReference override to Prefab's nested Prefab
- About Unity window shows extended version numbers including staging tag
Resolution Note:
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-36836