Skip to content

Commit bf3ee57

Browse files
committed
Merge branch 'beta'
2 parents 7e95735 + 32a84ef commit bf3ee57

File tree

57 files changed

+4553
-1410
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+4553
-1410
lines changed

Assets/SteamVR/Editor/SteamVR_AutoEnableVR.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ static SteamVR_AutoEnableVR()
2323
protected const string openVRString = "OpenVR";
2424
protected const string openVRPackageString = "com.unity.xr.openvr.standalone";
2525

26-
#if UNITY_2018_1_OR_NEWER
26+
#if UNITY_2018_2_OR_NEWER
2727
private enum PackageStates
2828
{
2929
None,
@@ -91,7 +91,7 @@ public static void Update()
9191
Debug.Log("<b>[SteamVR Setup]</b> Added OpenVR to supported VR SDKs list.");
9292
}
9393

94-
#if UNITY_2018_1_OR_NEWER
94+
#if UNITY_2018_2_OR_NEWER
9595
//2018+ requires us to manually add the OpenVR package
9696

9797
switch (packageState)

Assets/SteamVR/Editor/SteamVR_UnitySettingsWindow.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@ static void Update()
9292
PlayerSettings.defaultScreenHeight != recommended_DefaultScreenHeight)) ||
9393
(!EditorPrefs.HasKey(ignore + runInBackground) &&
9494
PlayerSettings.runInBackground != recommended_RunInBackground) ||
95+
#if !UNITY_2019_1_OR_NEWER
9596
(!EditorPrefs.HasKey(ignore + displayResolutionDialog) &&
9697
PlayerSettings.displayResolutionDialog != recommended_DisplayResolutionDialog) ||
98+
#endif
9799
(!EditorPrefs.HasKey(ignore + resizableWindow) &&
98100
PlayerSettings.resizableWindow != recommended_ResizableWindow) ||
99101
(!EditorPrefs.HasKey(ignore + visibleInBackground) &&
@@ -320,6 +322,7 @@ public void OnGUI()
320322
GUILayout.EndHorizontal();
321323
}
322324

325+
#if !UNITY_2019_1_OR_NEWER
323326
if (!EditorPrefs.HasKey(ignore + displayResolutionDialog) &&
324327
PlayerSettings.displayResolutionDialog != recommended_DisplayResolutionDialog)
325328
{
@@ -343,6 +346,7 @@ public void OnGUI()
343346

344347
GUILayout.EndHorizontal();
345348
}
349+
#endif
346350

347351
if (!EditorPrefs.HasKey(ignore + resizableWindow) &&
348352
PlayerSettings.resizableWindow != recommended_ResizableWindow)
@@ -593,8 +597,10 @@ public void OnGUI()
593597
}
594598
if (!EditorPrefs.HasKey(ignore + runInBackground))
595599
PlayerSettings.runInBackground = recommended_RunInBackground;
600+
#if !UNITY_2019_1_OR_NEWER
596601
if (!EditorPrefs.HasKey(ignore + displayResolutionDialog))
597602
PlayerSettings.displayResolutionDialog = recommended_DisplayResolutionDialog;
603+
#endif
598604
if (!EditorPrefs.HasKey(ignore + resizableWindow))
599605
PlayerSettings.resizableWindow = recommended_ResizableWindow;
600606
if (!EditorPrefs.HasKey(ignore + visibleInBackground))
@@ -648,8 +654,10 @@ public void OnGUI()
648654
EditorPrefs.SetBool(ignore + defaultScreenSize, true);
649655
if (PlayerSettings.runInBackground != recommended_RunInBackground)
650656
EditorPrefs.SetBool(ignore + runInBackground, true);
657+
#if !UNITY_2019_1_OR_NEWER
651658
if (PlayerSettings.displayResolutionDialog != recommended_DisplayResolutionDialog)
652659
EditorPrefs.SetBool(ignore + displayResolutionDialog, true);
660+
#endif
653661
if (PlayerSettings.resizableWindow != recommended_ResizableWindow)
654662
EditorPrefs.SetBool(ignore + resizableWindow, true);
655663
if (PlayerSettings.visibleInBackground != recommended_VisibleInBackground)

0 commit comments

Comments
 (0)