Skip to content

Commit 572b266

Browse files
author
ChengNan Yang
committed
Update compatibility with com.unity.xr.openxr 1.4.2 or newer
1 parent 1b33622 commit 572b266

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Assets/HTC.UnityPlugin/VRModule/Modules/Editor/UnityEngineVRModuleEditor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ public UnityEngineVRSymbolRequirementCollection()
127127
reqTypeNames = new string[]
128128
{
129129
"UnityEditor.XR.OpenXR.OpenXRProjectValidation",
130-
"UnityEditor.XR.OpenXR.OpenXRProjectValidationWindow",
130+
"UnityEditor.XR.OpenXR.OpenXRProjectValidationRulesSetup",
131131
"UnityEngine.XR.OpenXR.OpenXRSettings",
132132
"UnityEngine.XR.OpenXR.Features.OpenXRFeature",
133133
},
134134
reqFileNames = new string[]
135135
{
136136
"OpenXRProjectValidation.cs",
137-
"OpenXRProjectValidationWindow.cs",
137+
"OpenXRProjectValidationRulesSetup.cs",
138138
"OpenXRFeature.cs",
139139
},
140140
});

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ public UnityXRRecommendedSettings()
4646
}
4747
}
4848

49-
MethodInfo openWindowMethod = openXREditorAsm.GetType("UnityEditor.XR.OpenXR.OpenXRProjectValidationWindow", true).GetMethod("ShowWindow", BindingFlags.NonPublic | BindingFlags.Static);
49+
MethodInfo openWindowMethod = openXREditorAsm.GetType("UnityEditor.XR.OpenXR.OpenXRProjectValidationRulesSetup", true).GetMethod("ShowWindow", BindingFlags.NonPublic | BindingFlags.Static);
5050
openWindowMethod.Invoke(null, new object[] {VIUSettingsEditor.activeBuildTargetGroup});
5151
}
5252
catch (Exception e)
5353
{
54-
Debug.LogError("Failed to open OpenXRProjectValidationWindow: " + e);
54+
Debug.LogError("Failed to open OpenXRProjectValidationRulesSetup: " + e);
5555
}
5656
},
5757
recommendedValue = 0,

0 commit comments

Comments
 (0)