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