Skip to content

Commit 54542a9

Browse files
author
lawwong
committed
Disable button adding openxr xr plugin in settings since its not fully supported yet
1 parent 2d9f61a commit 54542a9

File tree

5 files changed

+14
-12
lines changed

5 files changed

+14
-12
lines changed

Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/Editor/VRPlatformSettings/OculusGoSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ public override void OnPreferenceGUI()
588588
GUILayout.FlexibleSpace();
589589
ShowSwitchPlatformButton(BuildTargetGroup.Android, BuildTarget.Android);
590590
}
591-
#if UNITY_2020_2_OR_NEWER
591+
#if UNITY_2020_2_OR_NEWER && FALSE // openxr not fully supported yet
592592
else if (!PackageManagerHelper.IsPackageInList(OPENXR_PLUGIN_PACKAGE_NAME))
593593
{
594594
GUI.enabled = false;

Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/Editor/VRPlatformSettings/OculusSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public override void OnPreferenceGUI()
176176
GUILayout.FlexibleSpace();
177177
ShowSwitchPlatformButton(BuildTargetGroup.Standalone, BuildTarget.StandaloneWindows64);
178178
}
179-
#if UNITY_2020_2_OR_NEWER
179+
#if UNITY_2020_2_OR_NEWER && FALSE // openxr not fully supported yet
180180
else if (!PackageManagerHelper.IsPackageInList(OPENXR_PLUGIN_PACKAGE_NAME))
181181
{
182182
GUI.enabled = false;

Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/Editor/VRPlatformSettings/OpenVRSettings.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ public OpenVRRecommendedSettings()
341341

342342
public static partial class VIUSettingsEditor
343343
{
344-
public const string URL_STEAM_VR_PLUGIN = "https://assetstore.unity.com/packages/slug/32647?";
344+
public const string URL_STEAM_VR_PLUGIN = "https://assetstore.unity.com/packages/slug/32647";
345345

346346
private const string OPENVR_PACKAGE_NAME = "com.unity.xr.openvr.standalone";
347347
private const string OPENVR_XR_PACKAGE_NAME_OLD = "com.valve.openvr";
@@ -478,7 +478,7 @@ public override void OnPreferenceGUI()
478478
GUILayout.FlexibleSpace();
479479
ShowSwitchPlatformButton(BuildTargetGroup.Standalone, BuildTarget.StandaloneWindows64);
480480
}
481-
#if UNITY_2020_2_OR_NEWER
481+
#if UNITY_2020_2_OR_NEWER && FALSE // openxr not fully supported yet
482482
else if (!PackageManagerHelper.IsPackageInList(OPENXR_PLUGIN_PACKAGE_NAME))
483483
{
484484
GUI.enabled = false;
@@ -487,7 +487,7 @@ public override void OnPreferenceGUI()
487487
GUILayout.FlexibleSpace();
488488
ShowAddPackageButton("OpenXR Plugin", OPENXR_PLUGIN_PACKAGE_NAME);
489489
}
490-
#elif UNITY_2019_3_OR_NEWER
490+
#elif UNITY_2019_3_OR_NEWER && FALSE // openvr xr plugin on Valve registry is obsolete
491491
else if (!PackageManagerHelper.IsPackageInList(OPENVR_XR_PACKAGE_NAME))
492492
{
493493
GUI.enabled = false;
@@ -506,7 +506,7 @@ public override void OnPreferenceGUI()
506506
VIUProjectSettings.Instance.isInstallingOpenVRXRPlugin = true;
507507
}
508508
}
509-
#elif UNITY_2018_2_OR_NEWER
509+
#elif UNITY_2018_2_OR_NEWER && FALSE // obsolete
510510
else if (!PackageManagerHelper.IsPackageInList(OPENVR_PACKAGE_NAME))
511511
{
512512
GUI.enabled = false;

Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/Editor/VRPlatformSettings/WaveVRSettings.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,12 @@ public override void OnPreferenceGUI()
202202
const float wvrToggleWidth = 226f;
203203
GUILayout.BeginHorizontal();
204204
Foldouter.ShowFoldoutBlank();
205-
#if UNITY_5_6_OR_NEWER && !UNITY_5_6_0 && !UNITY_5_6_1 && !UNITY_5_6_2
205+
206+
#if !UNITY_5_6_OR_NEWER || UNITY_5_6_0 || UNITY_5_6_1 || UNITY_5_6_2
207+
GUI.enabled = false;
208+
ShowToggle(new GUIContent(title, "Unity 5.6.3 or later version required."), false, GUILayout.Width(wvrToggleWidth));
209+
GUI.enabled = true;
210+
#else
206211
if (activeBuildTargetGroup != BuildTargetGroup.Android)
207212
{
208213
GUI.enabled = false;
@@ -239,11 +244,8 @@ public override void OnPreferenceGUI()
239244
GUILayout.FlexibleSpace();
240245
ShowUrlLinkButton(URL_WAVE_VR_PLUGIN);
241246
}
242-
#else
243-
GUI.enabled = false;
244-
ShowToggle(new GUIContent(title, "Unity 5.6.3 or later version required."), false, GUILayout.Width(wvrToggleWidth));
245-
GUI.enabled = true;
246247
#endif
248+
247249
GUILayout.EndHorizontal();
248250
}
249251

Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/Editor/VRPlatformSettings/WindowsMRSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public override void OnPreferenceGUI()
128128
GUILayout.FlexibleSpace();
129129
ShowSwitchPlatformButton(BuildTargetGroup.Standalone, BuildTarget.StandaloneWindows64);
130130
}
131-
#if UNITY_2020_2_OR_NEWER
131+
#if UNITY_2020_2_OR_NEWER && FALSE // openxr not fully supported yet
132132
else if (!PackageManagerHelper.IsPackageInList(OPENXR_PLUGIN_PACKAGE_NAME))
133133
{
134134
GUI.enabled = false;

0 commit comments

Comments
 (0)