Skip to content

Commit

Permalink
Merge branch 'fix-pr/typed_game_event_editor' of https://github.com/z…
Browse files Browse the repository at this point in the history
…apdot/ScriptableObject-Architecture into zapdot-fix-pr/typed_game_event_editor
  • Loading branch information
DanielEverland committed Feb 22, 2020
2 parents 193e484 + f8d2536 commit 7970e37
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@ protected override void DrawRaiseButton()
{
SerializedProperty property = serializedObject.FindProperty("_debugValue");

EditorGUILayout.PropertyField(property);
using (var scope = new EditorGUI.ChangeCheckScope())
{
EditorGUILayout.PropertyField(property);

if (scope.changed)
{
serializedObject.ApplyModifiedProperties();
}
}

if (GUILayout.Button("Raise"))
{
Expand Down

0 comments on commit 7970e37

Please sign in to comment.