浏览代码

4.2.0-pre.9

/4.2
Tim Mowrer 4 年前
当前提交
2cf34c55
共有 3 个文件被更改,包括 20 次插入9 次删除
  1. 15
      Assets/Scripts/UX/CheckAvailableFeatures.cs
  2. 10
      Packages/manifest.json
  3. 4
      ProjectSettings/ProjectVersion.txt

15
Assets/Scripts/UX/CheckAvailableFeatures.cs


void Start()
{
if(!s_MeshingSupported)
{
var activeLoader = LoaderUtility.GetActiveLoader();
if(activeLoader && activeLoader.GetLoadedSubsystem<XRMeshSubsystem>() != null)
{
s_MeshingSupported = true;
}
}
var planeDescriptors = new List<XRPlaneSubsystemDescriptor>();
SubsystemManager.GetSubsystemDescriptors(planeDescriptors);

m_PlaneOcclusion.interactable = true;
}
var activeLoader = LoaderUtility.GetActiveLoader();
if(activeLoader && activeLoader.GetLoadedSubsystem<XRMeshSubsystem>() != null)
// Due to a change in XR Management version 4.0.2, where cached subsystems are cleared after XRLoader.Deinitialize is
// called, meshing support needs to be checked once as support will not be changed with scene changes.
if(s_MeshingSupported)
{
m_Meshing.interactable = true;
}

#endif // UNITY_IOS
}
static bool s_MeshingSupported;
}
}

10
Packages/manifest.json


{
"dependencies": {
"com.unity.ide.rider": "2.0.7",
"com.unity.ide.visualstudio": "2.0.7",
"com.unity.ide.visualstudio": "2.0.8",
"com.unity.xr.arcore": "4.2.0-pre.8",
"com.unity.xr.arfoundation": "4.2.0-pre.8",
"com.unity.xr.arkit": "4.2.0-pre.8",
"com.unity.xr.arkit-face-tracking": "4.2.0-pre.8",
"com.unity.xr.arcore": "4.2.0-pre.9",
"com.unity.xr.arfoundation": "4.2.0-pre.9",
"com.unity.xr.arkit": "4.2.0-pre.9",
"com.unity.xr.arkit-face-tracking": "4.2.0-pre.9",
"com.unity.xr.interaction.toolkit": "1.0.0-pre.3",
"com.unity.modules.ai": "1.0.0",
"com.unity.modules.androidjni": "1.0.0",

4
ProjectSettings/ProjectVersion.txt


m_EditorVersion: 2020.3.4f1
m_EditorVersionWithRevision: 2020.3.4f1 (0abb6314276a)
m_EditorVersion: 2020.3.11f1
m_EditorVersionWithRevision: 2020.3.11f1 (99c7afb366b3)
正在加载...
取消
保存