@@ -21,7 +21,6 @@ public class MixedRealityToolkitConfigurationProfileInspector : BaseMixedReality
2121 private static readonly GUIContent TargetScaleContent = new GUIContent ( "Target Scale:" ) ;
2222
2323 // Experience properties
24- private SerializedProperty experienceSettingsType ;
2524 private SerializedProperty experienceSettingsProfile ;
2625
2726 // Tracking the old experience scale property for compatibility
@@ -97,7 +96,6 @@ protected override void OnEnable()
9796 MixedRealityToolkitConfigurationProfile mrtkConfigProfile = target as MixedRealityToolkitConfigurationProfile ;
9897
9998 // Experience configuration
100- experienceSettingsType = serializedObject . FindProperty ( "experienceSettingsType" ) ;
10199 experienceSettingsProfile = serializedObject . FindProperty ( "experienceSettingsProfile" ) ;
102100 experienceScaleMigration = serializedObject . FindProperty ( "targetExperienceScale" ) ;
103101
@@ -155,7 +153,7 @@ protected override void OnEnable()
155153 // Reconciling old Experience Scale property with the Experience Settings Profile
156154 var oldExperienceSettigsScale = ( experienceSettingsProfile . objectReferenceValue as MixedRealityExperienceSettingsProfile ) ? . TargetExperienceScale ;
157155
158- changed |= RenderProfile ( experienceSettingsProfile , typeof ( MixedRealityExperienceSettingsProfile ) , true , false , null , true ) ;
156+ changed |= RenderProfile ( experienceSettingsProfile , typeof ( MixedRealityExperienceSettingsProfile ) , true , false , null ) ;
159157
160158 // Experience configuration
161159 if ( ! mrtkConfigProfile . ExperienceSettingsProfile . IsNull ( ) )
@@ -247,14 +245,24 @@ protected override void OnEnable()
247245 return changed ;
248246 } ,
249247 ( ) => {
250- var experienceScale = mrtkConfigProfile . ExperienceSettingsProfile . TargetExperienceScale ;
251- if ( experienceScale != ExperienceScale . Room )
248+ if ( mrtkConfigProfile . ExperienceSettingsProfile . IsNull ( ) )
252249 {
253- // Alert the user if the experience scale does not support boundary features.
250+ // Alert that an experience settings profile has not been selected
254251 GUILayout . Space ( 6f ) ;
255- EditorGUILayout . HelpBox ( "Boundaries are only supported in Room scale experiences ." , MessageType . Warning ) ;
252+ EditorGUILayout . HelpBox ( "Boundaries require an experience settings profile with a Room scale target experience scale ." , MessageType . Warning ) ;
256253 GUILayout . Space ( 6f ) ;
257254 }
255+ else
256+ {
257+ var experienceScale = mrtkConfigProfile . ExperienceSettingsProfile . TargetExperienceScale ;
258+ if ( experienceScale != ExperienceScale . Room )
259+ {
260+ // Alert the user if the experience scale does not support boundary features.
261+ GUILayout . Space ( 6f ) ;
262+ EditorGUILayout . HelpBox ( "Boundaries are only supported in Room scale experiences." , MessageType . Warning ) ;
263+ GUILayout . Space ( 6f ) ;
264+ }
265+ }
258266
259267 bool changed = false ;
260268 using ( var c = new EditorGUI . ChangeCheckScope ( ) )
0 commit comments