Adding the image target

Back in Unity, we will now tell our scene about the business card image target to use. We identify it in the project using tags. We'll tag our target PurpleFinch:

  1. In Hierarchy, the Main Camera should be a child of Root. Select Main Camera.
  2. Using Add Component, choose ARMarker to add the component to camera.
  3. For Target Tag enter the name PurpleFinch.
  4. Set its Type to NFT.
  5. For NFT dataset name set the same name of our datafiles (which are now in StreamingAssets). Ours is named PurpleFinchCard.

Assuming it finds the dataset, you will see confirmation messages in the editor Console window, and the component will show the UID of the found marker, as shown in the following screenshot:

Now we add it to the scene as a tracked ...

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.