浏览代码

loader check

/4.0
Alexandra Serralta 5 年前
当前提交
3f73a159
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 5
      Assets/Scripts/UX/CheckAvailableFeatures.cs

5
Assets/Scripts/UX/CheckAvailableFeatures.cs


var sessionDescriptors = new List<XRSessionSubsystemDescriptor>();
SubsystemManager.GetSubsystemDescriptors<XRSessionSubsystemDescriptor>(sessionDescriptors);
var meshDescriptors = new List<XRMeshSubsystemDescriptor>();
SubsystemManager.GetSubsystemDescriptors<XRMeshSubsystemDescriptor>(meshDescriptors);
if(planeDescriptors.Count > 0 && rayCastDescriptors.Count > 0)
{
m_SimpleAR.interactable = true;

m_PlaneOcclusion.interactable = true;
}
if(activeLoader is ARKitLoader && ((ARKitLoader)activeLoader).meshSubsystem !=null)
if(activeLoader.GetLoadedSubsystem<XRMeshSubsystem>() != null)
{
m_Meshing.interactable = true;
}

正在加载...
取消
保存