Tri-Inspector/Editor.Samples/Misc/Misc_OnValueChangedSample.cs

13 lines
267 B
C#
Raw Normal View History

using TriInspector;
using UnityEngine;
public class Misc_OnValueChangedSample : ScriptableObject
{
[OnValueChanged(nameof(OnMaterialChanged))]
public Material mat;
private void OnMaterialChanged()
{
Debug.Log("Material changed!");
}
}