Added DetectInspectorChanges

This commit is contained in:
2026-01-23 19:05:46 +00:00
parent b742651e62
commit 36052b32ca
9 changed files with 91 additions and 14 deletions

View File

@@ -4,4 +4,12 @@ using UnityEngine;
public class TestMonoBehaviour : MonoBehaviour
{
[InspectorReadOnly, SerializeField] private GameObject go;
[DetectInspectorChanges("OnTestChange")]
public int Test;
private void OnTestChange()
{
Debug.Log($"New value: {Test}");
}
}