1.8.3: Added HideLabel attribute
This commit is contained in:
parent
61c7356b3a
commit
3259b62387
12 changed files with 97 additions and 8 deletions
14
Runtime/Predrawers/HideLabelAttribute.cs
Normal file
14
Runtime/Predrawers/HideLabelAttribute.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
using System;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class HideLabelAttribute : PredrawerModifierPropertyAttribute
|
||||
{
|
||||
[Preserve]
|
||||
public HideLabelAttribute()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
3
Runtime/Predrawers/HideLabelAttribute.cs.meta
Normal file
3
Runtime/Predrawers/HideLabelAttribute.cs.meta
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 5f5c299642f040cabf74fd751c38e7ce
|
||||
timeCreated: 1699115292
|
||||
|
|
@ -6,9 +6,16 @@ namespace Module.Inspector
|
|||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||||
public class NotNullFieldAttribute : ValidatePropertyAttribute
|
||||
{
|
||||
public readonly string errorMessage;
|
||||
|
||||
[Preserve]
|
||||
public NotNullFieldAttribute()
|
||||
{
|
||||
}
|
||||
|
||||
public NotNullFieldAttribute(string errorMessage)
|
||||
{
|
||||
this.errorMessage = errorMessage;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue