Tri-Inspector/Runtime/Attributes/DisableIfAttribute.cs

18 lines
493 B
C#

using System;
using System.Diagnostics;
namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)]
[Conditional("UNITY_EDITOR")]
public class DisableIfAttribute : ConditionalDisableBaseAttribute
{
public DisableIfAttribute(string condition) : this(condition, true)
{
}
public DisableIfAttribute(string condition, object value) : base(condition, value)
{
}
}
}