Skip to content

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

License

Notifications You must be signed in to change notification settings

Rozhovetskyi/AR-Support-Checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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