Use the following steps to create a new AR project in Unity. You will need to have downloaded the Vuforia packages first (please refer to Chapter 2, Setting Up Your System):
- Open Unity and create a new 3D project; name it something like ARBall.
- Choose Assets | Import Package | Custom Package to import vuforia-unity-xxxx.
- Choose Assets | Import Package | Custom Package to import VuforiaSamples-xxxx.
- While logged into the Vuforia site, browse to Vuforia Dev Portal (https://developer.vuforia.com/targetmanager/licenseManager/licenseListing) and choose or create a license key. Copy the license key into your clipboard.
- Back in Unity, choose main menu Vuforia | Configuration, and paste it into App License Key.
- Review the other configuration settings, including the current Webcam Camera Device.
- Save the scene (File | Save Scene As, name it Main) and save the project (File | Save Project).
- Go to File | Build Settings.
- Add the current scene, press Add Open Scenes.
- Switch Platform to Android.
- Choose Player Settings and then set your Identification Package name (com.Company.Product) and Minimum API Level (Android 5.1).
- Save the scene and save the project.
For this walkthrough, we are going to target Android devices. We can do some basic settings now. This way, you can periodically do a Build and Run to see your progress on the actual device throughout the project.
Good, that's the basic project set up.