Creating an initial project

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):

  1. Open Unity and create a new 3D project; name it something like ARBall.
  2. Choose Assets | Import Package | Custom Package to import vuforia-unity-xxxx.
  3. Choose Assets | Import Package | Custom Package to import VuforiaSamples-xxxx.
  4. 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.
  5. Back in Unity, choose main menu Vuforia | Configuration, and paste it into App License Key.
  6. Review the other configuration settings, including the current Webcam Camera Device.
  7. Save the scene (File | Save Scene As, name it Main) and save the project (File | Save Project).
  8. Go to File | Build Settings.
  9. Add the current scene, press Add Open Scenes.

 

  1. Switch Platform to Android.
  2. Choose Player Settings and then set your Identification Package name (com.Company.Product) and Minimum API Level (Android 5.1).
  3. 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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset