mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 16:28:23 -05:00
13 lines
267 B
C#
13 lines
267 B
C#
using TriInspector;
|
|
using UnityEngine;
|
|
|
|
public class Misc_OnValueChangedSample : ScriptableObject
|
|
{
|
|
[OnValueChanged(nameof(OnMaterialChanged))]
|
|
public Material mat;
|
|
|
|
private void OnMaterialChanged()
|
|
{
|
|
Debug.Log("Material changed!");
|
|
}
|
|
} |