Improve Unity XR-Oculus detection

This commit is contained in:
Pascal Serrarens 2023-03-06 17:18:33 +01:00
parent 6d3c7edd0d
commit 750fccaaaa

View File

@ -1120,6 +1120,9 @@ namespace Passer.Humanoid {
return false; return false;
if (ConfigurationCheck.packageNameList.Contains("com.unity.xr.management")) if (ConfigurationCheck.packageNameList.Contains("com.unity.xr.management"))
return true; return true;
else if (ConfigurationCheck.packageNameList.Contains("com.unity.xr.oculus"))
// Somehow management is no longer available when Oculus is used
return true;
else if (ConfigurationCheck.packageNameList.Contains("com.unity.xr.openxr")) else if (ConfigurationCheck.packageNameList.Contains("com.unity.xr.openxr"))
// Somehow management is no longer available when OpenXR is used // Somehow management is no longer available when OpenXR is used
return true; return true;