Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit 080b91c

Browse files
Added support for enum values
1 parent a25a595 commit 080b91c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/SO Architecture/Editor/Drawers/GenericPropertyDrawer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public static class GenericPropertyDrawer
77
{
88
public static void DrawPropertyDrawer(System.Type type, SerializedProperty property, GUIContent errorLabel)
99
{
10-
if (SOArchitecture_EditorUtility.HasPropertyDrawer(type) || typeof(Object).IsAssignableFrom(type))
10+
if (SOArchitecture_EditorUtility.HasPropertyDrawer(type) || typeof(Object).IsAssignableFrom(type) || type.IsEnum)
1111
{
1212
//Unity doesn't like it when you have scene objects on assets,
1313
//so we do some magic to display it anyway

0 commit comments

Comments
 (0)