Augmented Reality for Developers
上QQ阅读APP看书,第一时间看更新

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):