Skip to content

Commit 75816bd

Browse files
committed
Change platform filter label
1 parent e6ee6a8 commit 75816bd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Editor/CustomInspectors/PlatformFilterPropertyDrawer.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten
1212
SerializedProperty platforms = property.FindPropertyRelative(nameof(PlatformFilter.Platforms));
1313
if (platforms.arraySize > 0)
1414
{
15-
SerializedProperty filter = property.FindPropertyRelative(nameof(PlatformFilter.Filter));
16-
IncludeMode filterType = (IncludeMode) filter.enumValueIndex;
17-
label.text += $": {(filterType == IncludeMode.Include ? "" : "! ")}{string.Join(", ", platforms.IterateEnumArrayStrings())}";
15+
IncludeMode filterType = (IncludeMode) property.FindPropertyRelative(nameof(PlatformFilter.Filter)).enumValueIndex;
16+
label.text += $": {(filterType == IncludeMode.Include ? "" : "!(")}{string.Join(" | ", platforms.IterateEnumArrayStrings())}{(filterType == IncludeMode.Include ? "" : ")")}";
1817
}
1918
else
2019
{

0 commit comments

Comments
 (0)