@@ -15,27 +15,36 @@ public class MixedRealityProjectConfiguratorWindow : EditorWindow
1515 {
1616 private readonly Dictionary < MRConfig , bool > trackToggles = new Dictionary < MRConfig , bool > ( )
1717 {
18- { MRConfig . ForceTextSerialization , true } ,
19- { MRConfig . VisibleMetaFiles , true } ,
20- { MRConfig . VirtualRealitySupported , true } ,
21- { MRConfig . SinglePassInstancing , true } ,
22- { MRConfig . SpatialAwarenessLayer , true } ,
23- { MRConfig . EnableMSBuildForUnity , true } ,
18+ { MRConfig . ForceTextSerialization , true } ,
19+ { MRConfig . VisibleMetaFiles , true } ,
20+ #if UNITY_2019_3_OR_NEWER
21+ { MRConfig . XRManagerEnabled , false } ,
22+ // XR Manager platforms
23+ { MRConfig . XRManagerWindows , true } ,
24+ { MRConfig . XRManagerOculus , true } ,
25+ { MRConfig . XRManagerAndroid , false } ,
26+ { MRConfig . XRManageriOS , false } ,
27+ #endif // UNITY_2019_3_OR_NEWER
28+ { MRConfig . VirtualRealitySupported , true } ,
29+ { MRConfig . SinglePassInstancing , true } ,
30+ { MRConfig . SpatialAwarenessLayer , true } ,
31+ { MRConfig . EnableMSBuildForUnity , true } ,
2432 // UWP Capabilities
25- { MRConfig . MicrophoneCapability , true } ,
26- { MRConfig . InternetClientCapability , true } ,
27- { MRConfig . SpatialPerceptionCapability , true } ,
33+ { MRConfig . MicrophoneCapability , true } ,
34+ { MRConfig . InternetClientCapability , true } ,
35+ { MRConfig . SpatialPerceptionCapability , true } ,
2836#if UNITY_2019_3_OR_NEWER
29- { MRConfig . EyeTrackingCapability , true } ,
30- #endif
37+ { MRConfig . EyeTrackingCapability , true } ,
38+ #endif // UNITY_2019_3_OR_NEWER
39+
3140 // Android Settings
32- { MRConfig. AndroidMultiThreadedRendering , true } ,
33- { MRConfig . AndroidMinSdkVersion , true } ,
41+ { MRConfig. AndroidMultiThreadedRendering , true } ,
42+ { MRConfig . AndroidMinSdkVersion , true } ,
3443
3544 // iOS Settings
36- { MRConfig . IOSMinOSVersion , true } ,
37- { MRConfig . IOSArchitecture , true } ,
38- { MRConfig . IOSCameraUsageDescription , true } ,
45+ { MRConfig . IOSMinOSVersion , true } ,
46+ { MRConfig . IOSArchitecture , true } ,
47+ { MRConfig . IOSCameraUsageDescription , true } ,
3948 } ;
4049
4150 private const string WindowKey = "_MixedRealityToolkit_Editor_MixedRealityProjectConfiguratorWindow" ;
@@ -46,7 +55,11 @@ public class MixedRealityProjectConfiguratorWindow : EditorWindow
4655 private readonly GUIContent LaterButtonContent = new GUIContent ( "Later" , "Do not show this pop-up notification until next session" ) ;
4756 private readonly GUIContent IgnoreButtonContent = new GUIContent ( "Ignore" , "Modify this preference under Edit > Project Settings > MRTK" ) ;
4857
49- private bool showConfigurations = false ;
58+ private bool showConfigurations = true ;
59+
60+ #if UNITY_2019_3_OR_NEWER
61+ private bool showXRManagerPlatforms = true ;
62+ #endif // UNITY_2019_3_OR_NEWER
5063
5164 /// <summary>
5265 /// Show the MRTK Project Configurator utility window or focus if already opened
@@ -139,9 +152,29 @@ private void RenderConfigurations()
139152 EditorGUILayout . LabelField ( "Project Settings" , EditorStyles . boldLabel ) ;
140153 RenderToggle ( MRConfig . ForceTextSerialization , "Enable Force Text Serialization" ) ;
141154 RenderToggle ( MRConfig . VisibleMetaFiles , "Enable Visible meta files" ) ;
155+ #if UNITY_2019_3_OR_NEWER
156+ RenderToggle ( MRConfig . XRManagerEnabled , "Enable XR Manager" ) ;
157+ showXRManagerPlatforms = EditorGUILayout . Foldout ( showXRManagerPlatforms , "XR Manager Platforms" , true ) ;
158+ if ( showXRManagerPlatforms )
159+ {
160+ using ( new EditorGUI . IndentLevelScope ( ) )
161+ {
162+ // todo
163+ RenderToggle ( MRConfig . XRManagerWindows , "Windows XR" ) ;
164+ RenderToggle ( MRConfig . XRManagerOculus , "Oculus XR" ) ;
165+ RenderToggle ( MRConfig . XRManagerAndroid , "Android ARCore XR" ) ;
166+ RenderToggle ( MRConfig . XRManageriOS , "iOS ARKit XR" ) ;
167+ }
168+ }
169+ #endif // UNITY_2019_3_OR_NEWER
142170 if ( ! MixedRealityOptimizeUtils . IsBuildTargetAndroid ( ) && ! MixedRealityOptimizeUtils . IsBuildTargetIOS ( ) )
143171 {
172+ #if UNITY_2019_3_OR_NEWER
173+ RenderToggle ( MRConfig . VirtualRealitySupported , "Enable Legacy XR" ) ;
174+ #else
175+
144176 RenderToggle ( MRConfig . VirtualRealitySupported , "Enable VR Supported" ) ;
177+ #endif // UNITY_2019_3_OR_NEWER
145178 }
146179 RenderToggle ( MRConfig . SinglePassInstancing , "Set Single Pass Instanced rendering path" ) ;
147180 RenderToggle ( MRConfig . SpatialAwarenessLayer , "Set Default Spatial Awareness Layer" ) ;
0 commit comments