using UnityEngine; namespace EditorAttributes { /// /// Attribute to call a function when the value of the attached property changes /// public class OnValueChangedAttribute : PropertyAttribute { public string FunctionName { get; private set; } /// /// Attribute to call a function when the value of the attached property changes /// /// The name of the function to call public OnValueChangedAttribute(string functionName) => FunctionName = functionName; } }