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

@ -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()
{
}
}
}

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 5f5c299642f040cabf74fd751c38e7ce
timeCreated: 1699115292

View file

@ -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;
}
}
}