mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 16:28:23 -05:00
18 lines
503 B
C#
18 lines
503 B
C#
using System;
|
|
using System.Diagnostics;
|
|
|
|
namespace TriInspector
|
|
{
|
|
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = true)]
|
|
[Conditional("UNITY_EDITOR")]
|
|
public class HideIfAttribute : ConditionalHideBaseAttribute
|
|
{
|
|
public HideIfAttribute(string condition) : this(condition, true)
|
|
{
|
|
}
|
|
|
|
public HideIfAttribute(string condition, object value) : base(condition, value)
|
|
{
|
|
}
|
|
}
|
|
} |