当前位置:   article > 正文

[ARFoundation]unity ARfoundation+ARcore_available frame source not found from candidates:

available frame source not found from candidates: arengine arcore arkit moti

1.在这里插入图片描述
2.不支持vulkan渲染–>减掉
3.
在这里插入图片描述
4.建议用unity2020不用2019,因为从unity提供和官网提供的版本不同,这个有要求
在这里插入图片描述
5.现在只有unityPro才能在电脑上测试
6.华为手机现在不能装Google play services……
7.检测设备是否支持ARcore在这里插入图片描述

using UnityEngine.XR.ARFoundation;

public class CheckDevice : MonoBehaviour
{
    [SerializeField] ARSession m_Session;

    void Awake()
    {
        m_Session = GetComponent<ARSession>();
    }
    private IEnumerator Start()
    {
        Debug.Log("Start");
        if ((ARSession.state == ARSessionState.None)||(ARSession.state==ARSessionState.CheckingAvailability))
        {
            Debug.Log("Chack Availability");
            yield return ARSession.CheckAvailability();
        }
        if (ARSession.state == ARSessionState.Unsupported)
        {
            Debug.LogWarning("Device Not Supported");
        }
        else {
            Debug.Log("Device OK");
            m_Session.enabled = true;
        }
    }
}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/473838
推荐阅读
相关标签
  

闽ICP备14008679号