Search Issue Tracker
Fixed in 2018.3.X
Fixed in 2019.1.X
Votes
0
Found in
2018.3.0a1
2018.3.0f2
2019.1.0a1
2019.2.0a1
Issue ID
1115381
Regression
No
DrawDefaultInspector() displays enums differently from EditorGUILayout.EnumPopup when using Custom Inspector
How to reproduce:
1. Open attached project "case_1115381-DrawDefaultInspectorEnumPopup_1" and scene "EnumTest"
2. Select the "EnumTest" GameObject from the Hierarchy window to see its Inspector window
3. Observe Inspector window
Expected result: the top enum dropdown shows the associated Enum's Description attributes (like the one below it)
Actual result: the top enum dropdown shows the associated Enum's entries directly
Reproducible with: 2018.3.2f1, 2019.1.0a14, 2019.2.0a1
Not reproducible with: 2017.4.18f1 and older (EnumPopup did not use Description attribute)
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
- [URP] Crash on GameObject::QueryComponentByType when baking a Reflection Probe in an unsaved/untitled Scene
- No Icons are used for the Entry and Exit States in the Inspector when selected in an Animator Controller
- Crash on PlayerMain(int, char const**) when exiting Standalone Player with a Particle System in the Scene
- No Icon is used for the Runtime Animator Controller Type in a Search Window when assigning an Animator Controller in the Animator Component
- Unity Version Control server textfield’s text overlaps with the dropdown triangle button in the Explore repositories window when an organization with a long name is selected
Resolution Note (fix version 2018.3):
Usage of System.ComponentModel.DescriptionAttribute in the EnumPopup has been replaced by a new attribute UnityEngine.InspectorNameAttribute.
This attribute will be used in both EnumPopup dropdown and the default property drawer for enums to change the displayed name.
Resolution Note (fix version 2019.1):
Usage of System.ComponentModel.DescriptionAttribute in the EnumPopup has been removed in 2019.1 to avoid conflict with existing usage in DLLs that make the EnumPopup unusable in some inspectors.
Resolution Note (fix version 2018.3):
Using Description attribute to change enum was incompatible with many DLL or other plugins users have in their projects.
The Description feature for Enums has been removed from 2018.3 and will be added back in 2019.2 using a new attribute for it.