Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Check if device supports ARCore before starting ARSession ?

Discussion in 'AR' started by s7ubborn, Aug 8, 2019.

  1. s7ubborn


    Oct 1, 2015

    I would like to know how do you approach checking whether a device is compatible with ARCore *before* starting ARSession when using AR Foundation?

    The ARSession class is read-only and if I check availability before starting ARSession it is always ARSessionState.None. From my understanding, If I want to get the ARSessionState.Unsupported I will have to go through the OnEnable of the ARSession - which will start an ARSession, trigger camera permission (which I don't want) and only then will give report a state different than ARSessionState.None.

    Should I write my own native plugin to determine whether a device supports ARCore or is there an easier way?