Added DetectInspectorChanges
This commit is contained in:
@@ -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}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user