Skip to content

Commit 21ac151

Browse files
author
lawwong
committed
Fix old Unity Editor compatibility
1 parent 0abe7bc commit 21ac151

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ private static void SetOpenXRFeatureGroupEnable(BuildTargetGroup target, string
110110

111111
private static bool ShowXRPluginManagementSection()
112112
{
113+
#if VIU_OPENXR
113114
try
114115
{
115116
var projectSettingsType = Assembly.GetAssembly(typeof(SettingsProvider)).GetType("UnityEditor.ProjectSettingsWindow");
@@ -123,6 +124,9 @@ private static bool ShowXRPluginManagementSection()
123124
return false;
124125
}
125126
return true;
127+
#else
128+
return false;
129+
#endif
126130
}
127131
}
128132
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public override void OnPreferenceGUI()
207207

208208
#if !UNITY_5_6_OR_NEWER || UNITY_5_6_0 || UNITY_5_6_1 || UNITY_5_6_2
209209
GUI.enabled = false;
210-
ShowToggle(new GUIContent(s_title.text, s_title.tooltip + ". Unity 5.6.3 or later version required."), false, GUILayout.Width(toggleWidth));
210+
ShowToggle(new GUIContent(s_title.text, s_title.tooltip + ". Unity 5.6.3 or later version required."), false, GUILayout.Width(wvrToggleWidth));
211211
GUI.enabled = true;
212212
#else
213213
if (activeBuildTargetGroup != BuildTargetGroup.Android)

0 commit comments

Comments
 (0)