1.8.3: Added HideLabel attribute

This commit is contained in:
Anders Ejlersen 2023-11-04 17:47:58 +01:00
parent 61c7356b3a
commit 3259b62387
12 changed files with 97 additions and 8 deletions

View file

@ -35,7 +35,7 @@ namespace Module.Inspector.Editor
if (value.drawer.Validate(value.attribute, property))
continue;
validationError += value.drawer.GetValidationError(property);
validationError += value.drawer.GetValidationError(value.attribute, property);
isValid = false;
}
@ -47,8 +47,8 @@ namespace Module.Inspector.Editor
label.tooltip = validationError;
else
label.tooltip += "\n" + validationError;
GUI.color = Color.red;
EditorIcons.SetErrorIcon(label);
}
if (result.draw != null)