Tri-Inspector/Runtime/Attributes/OnValueChangedAttribute.cs

17 lines
384 B
C#
Raw Normal View History

2022-05-11 07:15:12 -04:00
using System;
using System.Diagnostics;
namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[Conditional("UNITY_EDITOR")]
2023-03-11 16:18:57 -05:00
public class OnValueChangedAttribute : Attribute
2022-05-11 07:15:12 -04:00
{
public OnValueChangedAttribute(string method)
{
Method = method;
}
public string Method { get; }
}
}