mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-23 00:38:21 -05:00
17 lines
391 B
C#
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; }
|
|||
|
}
|
|||
|
}
|