public static IDisposable ChangeCheck(Action onChanged) { EditorGUI.BeginChangeCheck(); return new ActionOnDispose(() => { if (EditorGUI.EndChangeCheck()) onChanged(); }); }