Quantcast
Channel: iOS and tvOS
Viewing all articles
Browse latest Browse all 10823

Check for ARKit support

$
0
0
Is there a good way to check if an arbitrary iOS device supports ARKit? I've looked through UnityARSessionNativeInterface and couldn't see anything really obvious; for now, I'm using the following:

Code (CSharp):
  1. try {
              
  2.     ARKitSessionConfiguration s1 = new ARKitSessionConfiguration ();
  3.     ARKitWorldTackingSessionConfiguration s2 = new ARKitWorldTackingSessionConfiguration ();
  4.     if (s1.IsSupported || s2.IsSupported) {
  5.         IsArKitSupported = true;
  6.     } else {
...
Check for ARKit support

Viewing all articles
Browse latest Browse all 10823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>