Adding an image target

Now let's add an ImageTarget prefab:

  1. From Project Assets/Vuforia/Prefabs, drag the ImageTarget prefab into the Hierarchy.
  2. Rename it User Defined Target.
  3. Set its Type to User Defined.
  4. Set the Target Name to something relevant; we will use Tire.
  5. Check Enable Extended Tracking.

You can see the setting now in the Inspector:

Let's add a simple graphic as a temporary placeholder, a cube, which will appear when our target is recognized.

  1. In Hierarchy, double-click the User Defined Target to put it in the middle of our Scene view.
  2. Right-click User Defined Target and select 3D Object | Cube.

 

  1. Shrink it down to something ...

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.