mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 16:28:23 -05:00
14 lines
371 B
C#
14 lines
371 B
C#
using System;
|
|
using System.Diagnostics;
|
|
|
|
namespace TriInspector
|
|
{
|
|
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)]
|
|
[Conditional("UNITY_EDITOR")]
|
|
public class DisableIfAttribute : ConditionalDisableAttribute
|
|
{
|
|
public DisableIfAttribute(string condition) : base(condition)
|
|
{
|
|
}
|
|
}
|
|
} |