Skip to content

Commit c9cb6cd

Browse files
Merge pull request #1092 from StephenHodgson/MRTK-DevProjectWizardFix
Fixed VR enabling on build target group in Project wizard.
2 parents e518411 + 83e0e27 commit c9cb6cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/HoloToolkit/Utilities/Scripts/Editor/ProjectSettingsWindow.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ private void UpdateSettings(BuildTarget currentBuildTarget)
244244
if (!Values[ProjectSetting.TargetOccludedDevices])
245245
{
246246
EditorUserBuildSettings.wsaSubtarget = WSASubtarget.HoloLens;
247-
UnityEditorInternal.VR.VREditor.SetVREnabledDevicesOnTargetGroup(BuildTargetGroup.WSA, new[] { "HoloLens" });
247+
UnityEditorInternal.VR.VREditor.SetVREnabledDevicesOnTargetGroup(BuildTargetGroup.WSA, new[] { "WindowsMR" });
248248
PlayerSettings.WSA.SetCapability(PlayerSettings.WSACapability.HumanInterfaceDevice, Values[ProjectSetting.XboxControllerSupport]);
249249
BuildDeployPrefs.BuildPlatform = "x86";
250250

@@ -256,7 +256,7 @@ private void UpdateSettings(BuildTarget currentBuildTarget)
256256
else
257257
{
258258
EditorUserBuildSettings.wsaSubtarget = WSASubtarget.PC;
259-
UnityEditorInternal.VR.VREditor.SetVREnabledDevicesOnTargetGroup(BuildTargetGroup.WSA, new[] { "stereo" });
259+
UnityEditorInternal.VR.VREditor.SetVREnabledDevicesOnTargetGroup(BuildTargetGroup.WSA, new[] { "WindowsMR" });
260260
PlayerSettings.WSA.SetCapability(PlayerSettings.WSACapability.HumanInterfaceDevice, false);
261261
BuildDeployPrefs.BuildPlatform = "x64";
262262

0 commit comments

Comments
 (0)