Skip to content

Commit 4f7af51

Browse files
committed
Add update to serializedObject in diagnostic inspector so changes actually apply
1 parent 194ffa7 commit 4f7af51

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Assets/MixedRealityToolkit/_Core/Inspectors/Profiles/MixedRealityDiagnosticsSystemProfileInspector.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ public override void OnInspectorGUI()
4848
GUI.enabled = false;
4949
}
5050

51+
serializedObject.Update();
52+
5153
EditorGUILayout.Space();
5254
EditorGUILayout.LabelField("Diagnostic Visualization Options", EditorStyles.boldLabel);
5355
EditorGUILayout.HelpBox("Diagnostic visualizations can help monitor system resources and performance inside an application.", MessageType.Info);
@@ -59,6 +61,8 @@ public override void OnInspectorGUI()
5961
EditorGUILayout.PropertyField(showCpu);
6062
EditorGUILayout.PropertyField(showFps);
6163
EditorGUILayout.PropertyField(showMemory);
64+
65+
serializedObject.ApplyModifiedProperties();
6266
}
6367
}
6468
}

0 commit comments

Comments
 (0)