Tri-Inspector/Runtime/Attributes/EnableInPlayModeAttribute.cs

15 lines
378 B
C#
Raw Normal View History

using System;
using System.Diagnostics;
namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)]
[Conditional("UNITY_EDITOR")]
2022-08-03 04:18:28 -04:00
public class EnableInPlayModeAttribute : DisableInPlayModeAttribute
{
2022-08-03 04:18:28 -04:00
public EnableInPlayModeAttribute()
{
Inverse = true;
}
}
}