1.1.0: Added validate attribute with NotNullField
This commit is contained in:
parent
18356eb532
commit
41ced8fdb7
15 changed files with 166 additions and 8 deletions
10
Editor/ValidatePropertyDrawer.cs
Normal file
10
Editor/ValidatePropertyDrawer.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
using UnityEditor;
|
||||
|
||||
namespace Module.Inspector.Editor
|
||||
{
|
||||
public abstract class ValidatePropertyDrawer : AbstractPropertyDrawer
|
||||
{
|
||||
public abstract bool Validate(ValidatePropertyAttribute attribute, SerializedProperty property);
|
||||
public abstract string GetValidationError(SerializedProperty property);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue