Files
SampleRenderPasses/Assets/Attributes/OnValueChanged.cs
2025-05-18 22:39:39 +03:00

22 lines
553 B
C#

using System;
namespace Golems.Attributes
{
/// <summary>
/// OnValueChange Attribute Invokes
/// passed Method when Field Value is changed.
/// </summary>
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true)]
public class OnValueChanged : Attribute
{
/// <summary>
/// Method to Invoke when Value change detected
/// </summary>
public string Method { get; private set; } = "";
public OnValueChanged(string method)
{
Method = method;
}
}
}