Renamed all attributes and drawers to have postfix of either Attribute or AttributeDrawer

This commit is contained in:
Anders Ejlersen 2021-12-04 12:47:44 +01:00
parent 81bac32538
commit dc15bfec81
161 changed files with 265 additions and 265 deletions

View file

@ -0,0 +1,30 @@
using System;
using UnityEngine.Scripting;
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class HideMethodAttribute : AccessModifierMethodAttribute
{
public readonly string fieldName;
public readonly bool useFieldValue;
public readonly object fieldValue;
[Preserve]
public HideMethodAttribute()
{
}
public HideMethodAttribute(string fieldName)
{
this.fieldName = fieldName;
}
public HideMethodAttribute(string fieldName, object fieldValue)
{
this.fieldName = fieldName;
this.fieldValue = fieldValue;
useFieldValue = true;
}
}
}