Tri-Inspector/Editor/TriPropertyHideProcessor.cs
2022-08-03 11:38:52 +03:00

20 lines
521 B
C#

using System;
using JetBrains.Annotations;
namespace TriInspector
{
public abstract class TriPropertyHideProcessor : TriPropertyExtension
{
internal Attribute RawAttribute { get; set; }
[PublicAPI]
public abstract bool IsHidden(TriProperty property);
}
public abstract class TriPropertyHideProcessor<TAttribute> : TriPropertyHideProcessor
where TAttribute : Attribute
{
[PublicAPI]
public TAttribute Attribute => (TAttribute) RawAttribute;
}
}