Adding an AR Tracked Object

We now need to actually add the target to the scene as a new GameObject under Root:

  1. In the Hierarchy, select Root, right-click, then Create Empty (and make sure the new empty GameObject is a child of Root).
  2. In Inspector, rename it GibraltarTarget.
  3. Ensure its Transform is reset (position at 0, 0, 0).

 

  1. Add Component named AR Tracked Object.
  2. In the AR Tracked Object component Marker Tag field, give it the tag we used earlier in the AR Controller, gibraltar.

If you spelled everything correctly (yeah I know; gibraltar is tough!), your tracked object should have been found in the database and the component will look like this (the actual UID may vary):

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.