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