1.8.3: Added HideLabel attribute
This commit is contained in:
parent
61c7356b3a
commit
3259b62387
12 changed files with 97 additions and 8 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue