/AR-Support-Checker

Unity plugin for ARCore / ARKit / AR Foundation supported devices detection.

Primary LanguageC#MIT LicenseMIT

AR Support Checker openupm Codacy Badge

Unity plugin for AR supported (ARCore, ARKit, AR Foundation) devices detection.

How to use

Add plugin using one of the following ways:

  • Import ARSupportChecker.package to your project
  • Via Package Manager / + / Add package from git URL... https://github.com/Rozhovetskyi/AR-Support-Checker.git
  • Via OpenUPM command: openupm add com.rozhovetskyi.arsupportchecker

Use ARSupportChecker.IsSupported() method to check if ARKit / ARCore is supported on the device.

How it works

Android

As Google Play Services for AR is automatically installed and updated on supported devices it will return true if com.google.ar.core package is installed on the device.

iOS

Uses ARWorldTrackingConfiguration.isSupported property to detect if the device supports ARWorldTrackingConfiguration session configuration class.

As ARKit requires iOS 11.0 or later for versions lower than that it returns false.

Editor

In Unity Editor it always returns false.

License

MIT (c) Yevhen Rozhovetskyi