We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a608e2 commit b4a2c64Copy full SHA for b4a2c64
1 file changed
Assets/VRstudios/XRInput/XRInput.cs
@@ -111,10 +111,14 @@ private IEnumerator Start()
111
{
112
if (loaderTypeName == "OpenXRLoader")
113
114
+ #if !XRINPUT_DISABLE_OPENXR
115
string platformName = UnityEngine.XR.OpenXR.OpenXRRuntime.name;
116
Debug.Log($"OpenXR platform name '{platformName}'");
117
if (platformName == "Oculus") apiType = XRInputAPIType.OculusXR;
118
else apiType = XRInputAPIType.UnityEngine_XR;
119
+ #else
120
+ throw new NotSupportedException("You have XRINPUT_DISABLE_OPENXR enabled");
121
+ #endif
122
}
123
else if (loaderTypeName == "OculusLoader")
124
0 commit comments