Tri-Inspector/Runtime/Attributes/OnValueChangedAttribute.cs
2022-05-11 14:15:12 +03:00

17 lines
391 B
C#

using System;
using System.Diagnostics;
namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[Conditional("UNITY_EDITOR")]
public sealed class OnValueChangedAttribute : Attribute
{
public OnValueChangedAttribute(string method)
{
Method = method;
}
public string Method { get; }
}
}