@@ -25,6 +25,8 @@ public class MixedRealityConfigurationProfileInspector : MixedRealityBaseConfigu
2525 private SerializedProperty controllersProfile ;
2626 private SerializedProperty enableBoundarySystem ;
2727
28+ private MixedRealityConfigurationProfile configurationProfile ;
29+
2830 private void OnEnable ( )
2931 {
3032 // Create The MR Manager if none exists.
@@ -55,6 +57,7 @@ private void OnEnable()
5557 }
5658 }
5759
60+ configurationProfile = target as MixedRealityConfigurationProfile ;
5861 enableCameraProfile = serializedObject . FindProperty ( "enableCameraProfile" ) ;
5962 cameraProfile = serializedObject . FindProperty ( "cameraProfile" ) ;
6063 enableInputSystem = serializedObject . FindProperty ( "enableInputSystem" ) ;
@@ -74,6 +77,7 @@ public override void OnInspectorGUI()
7477
7578 var previousLabelWidth = EditorGUIUtility . labelWidth ;
7679 EditorGUIUtility . labelWidth = 160f ;
80+ EditorGUI . BeginChangeCheck ( ) ;
7781
7882 // Camera Profile Configuration
7983 EditorGUILayout . LabelField ( "Camera Settings" , EditorStyles . boldLabel ) ;
@@ -117,6 +121,11 @@ public override void OnInspectorGUI()
117121
118122 EditorGUIUtility . labelWidth = previousLabelWidth ;
119123 serializedObject . ApplyModifiedProperties ( ) ;
124+
125+ if ( EditorGUI . EndChangeCheck ( ) )
126+ {
127+ MixedRealityManager . Instance . ResetConfiguration ( configurationProfile ) ;
128+ }
120129 }
121130
122131 private static void RenderProfile ( SerializedProperty property )
0 commit comments