Search Issue Tracker
Fixed in 2017.1.X
Votes
0
Found in
5.5.1p4
Issue ID
889001
Regression
No
[Inspector] Integer fields are displayed instead of values for serialized enums declared in generic types
Serialized enums, that derive from abstract classes are shown as integers in the Inspector.
Steps to reproduce:
1) Open the latest attached project.
2) Open 'TestScene'.
3) In the Hierarchy, select 'Main Camera'.
The script attached to Main Camera has two serialized enums - SingletonType and SingletonType2. SingletonType is defined in an abstract class and derives from it. SingletonType2 is a regular enum. When they are set to be shown in the Inspector, using the [SerializeField] attribute, SingletonType shows enum values as a dropdown list, but instead of SingletonType2 values, a simple integer field is shown.
Reproduced on:
2017.1.0a3, 5.5.2p2, 5.2.4f1
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 ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Add comment