Search Issue Tracker
Duplicate
Votes
0
Found in
2019.4
2019.4.1f1
2020.2
2021.1
Issue ID
1305546
Regression
No
Enum field is displayed as an integer value after adding different derived instances with an enum field to a list
How to reproduce:
1. Open the user's attached project "SerializedReferenceBug.zip"
2. Right-click on the Project window and click on the appeared context menu's "Create" > "MySo" item
3. Select the "New My SO" file
4. In the Inspector view, click the "Add MyDerived instance" button
5. Click the "Add MyOtherDerived instance" button
6. Observe Reference List > Element 1 > Enum Field field's and value's types
Expected result: Enum field is displayed as an integer value in the text field
Actual result: Enum field is displayed as a dropdown list with string values
Reproducible with: 2019.4.19f1, 2020.2.3f1, 2021.1.0b4, 2021.2.0a2
Not reproducible with: 2021.2.0a3
Could not test with: 2018.4.31f1 (Serializable is not introduced yet)
Notes:
- Not reproducible when Reference List is collapsed
- First used derived object's type ("MyDerived" or "MyOtherDerived") will always show an enum field as a dropdown list
Workaround:
- Click somewhere in the Editor and then select a "New My SO<...>.asset" file in the Project window. Enum fields will become dropdown lists with string values
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- SystemInfo.get_graphicsDeviceName() is generating garbage GC Alloc when using Metal graphics API
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
Add comment