diff --git a/Editor/AbstractPropertyDrawer.cs b/Editor/AbstractPropertyDrawer.cs index 3847fc9..7e3416b 100644 --- a/Editor/AbstractPropertyDrawer.cs +++ b/Editor/AbstractPropertyDrawer.cs @@ -21,7 +21,13 @@ namespace Module.Inspector.Editor if (result.draw != null) { if (!result.draw.drawer.Draw(position, result.draw.attribute, property, label, result)) - EditorGUI.LabelField(position, label, result.draw.drawer.GetErrorMessage(property)); + { + Color prevColor = GUI.color; + GUI.color = Color.red; + var errorContent = new GUIContent(result.draw.drawer.GetErrorMessage(property)); + EditorGUI.LabelField(position, label, errorContent); + GUI.color = prevColor; + } } else { diff --git a/package.json b/package.json index 6ff247f..ddcf6e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.module.inspector", - "version": "0.2.0", + "version": "0.2.1", "displayName": "Module.Inspector", "description": "Custom inspector with various useful property drawers", "unity": "2019.2",