ARToolKit for Unity on Android

From ARToolworks support library

Jump to: navigation, search

Main Page > ARToolKit for Unity > ARToolKit for Unity on Android

Contents

Requirements

You must have a Unity Pro with Android Pro license to be able to export projects from Unity that use the ARToolKit for Unity plugins.

Player Settings

When exporting to Android, some Player Settings should be configured:

  • Under "Resolution and Presentation", select "Landscape Left" so that the live video is oriented to match the screen.
  • Under "Other Settings":
    • For testing, set the "Bundle Identifier" to "com.mycompany.myapp". Note however that this will need to be changed before deployment of your finished application, or else it will lead to conflicts when other ARToolKit for Unity applications are installed on the device. See below for instructions on how to change prior to deployment of your finished application.
    • Set "Minimum API Level" to "Android 2.1 'Eclair' (API Level 7)" or higher.

Setting the Bundle Identifier

In ARToolKit for Unity Android applications, changing the bundle ID in the Unity Android "Build settings" also requires that the bundle ID be manually changed in the Android manifest. To do this, look inside your Unity project folder, for the file Assets/Plugins/Android/AndroidManifest.xml. Open the file in a text editor and locate the text package="com.mycompany.myapp", editing the "com.mycompany.myapp" to match the bundle identifier set in Unity.


Tested Devices

Unity maintains its own list of Android devices which have been tested with Unity alone: here. You should verify that your device works with Unity at all before attempting to use the ARToolKit for Unity plugin.

Additionally, the ARToolKit for Unity plugin has currently been tested on:

  • HTC Desire
  • HTC Evo 4G
  • Samsung Galaxy S
  • Samsung Galaxy SII
  • LG Optimus 3D

Known Issues

Personal tools