Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
2.98k stars 1.11k forks source link

Correct ARSessionState #1099

Closed i-vakula closed 9 months ago

i-vakula commented 9 months ago

How do I get correct ARSessionState?

At my low-lvl device I use ARSession.CheckAvailability() and get ARSessionState.NeedsInstall. Calling ARSession.Install() leads me to Google ARCore services page at play store, but I cannot update services, because "Device isn`t compatible". So, how can I get correct ARSessionState.Unsupported state?

andyb-unity commented 9 months ago

If you are sideloading your app onto an incompatible device, you'll never see ARSessionState.Unsupported. ARCore assumes by virtue of not being able to download the app from Google Play Store that your app would never run on this device, and does not check for unsupported in this case.

i-vakula commented 9 months ago

Ok. Thanks for answer)