Tri-Inspector/Runtime/Attributes/EnableIfAttribute.cs
2022-05-19 17:49:19 +03:00

18 lines
512 B
C#

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