Started adding inspector callable

This commit is contained in:
2026-01-24 01:19:18 +00:00
parent 36052b32ca
commit 4284fd60a2
6 changed files with 87 additions and 4 deletions

View File

@@ -8,8 +8,14 @@ public class TestMonoBehaviour : MonoBehaviour
[DetectInspectorChanges("OnTestChange")]
public int Test;
private void OnTestChange()
private void OnTestChange() => LogTestValue();
[InspectorCallable("Test button")] public void LogTestValue()
{
Debug.Log($"Test value [{Test}]");
}
[InspectorCallable("Other Test button")] public void DontLogTestValue()
{
Debug.Log($"New value: {Test}");
}
}