Activating and running

Lastly, we must activate the database:

  1. Go into the VuforiaConfiguration file (main menu Vuforia | Configuration).
  2. In Inspector Datasets check the Load BusinessCard checkbox (or whatever you named your database), and then mark it as Activate.
  3. Now with the image data set up, let's do a quick test of our work. In the Hierarchy, create a cube (for example, GameObject | 3D Object | Cube).

Our business card measures less than 0.1 meters, and our cube is 1.0 meters in size. That's too big.

  1. Change its Transform Scale to something like (0.05, 0.05, 0.05) and its Position to (0, 0.025, 0).
  2. And in Hierarchy, move the cube so it is a child of the ImageTarget.

Press Play, point the webcam at the business card and the cube should ...

Get Augmented Reality for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.