Importing database into Unity

In Unity, to import the database we follow the steps shown ahead:

  1. From the main menu go to Assets | Import Package | Custom Package...
  2. Select the database file we just downloaded.
  3. Click Import.

Once imported, it creates a folder named StreamingAssets. This is where all the database information will be held for the rest of our imported tracking points, whether it be images, objects, or any of the other tracking targets that Vuforia supports.

With the ImageTarget selected in the Hierarchy, look to the Inspector and in the Image Target Behavior component, for the Database parameter select your database, BusinessCard. It will default to the first target (which is fine since our database has only one target!)

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.