Skip to content

Commit 6d6c4c8

Browse files
committed
Read only enum fields default are displaying as masked fields now.
1 parent 04b639a commit 6d6c4c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Script Tester/Editor/MethodPropertyDrawer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ void DrawDirectField(bool readOnly, Rect? rect) {
402402
value = EditorGUILayout.Toggle(name, (bool)(value ?? false));
403403
break;
404404
case PropertyType.Enum:
405-
if(masked) {
405+
if(masked || readOnly) {
406406
if(rect.HasValue)
407407
value = Helper.MaskedEnumField(rect.Value, name, requiredType, (int)(value ?? 0));
408408
else

0 commit comments

Comments
 (0)