
上QQ阅读APP看书,第一时间看更新
Adding an AR Tracked Object
We now need to actually add the target to the scene as a new GameObject under Root:
- In the Hierarchy, select Root, right-click, then Create Empty (and make sure the new empty GameObject is a child of Root).
- In Inspector, rename it GibraltarTarget.
- Ensure its Transform is reset (position at 0, 0, 0).
- Add Component named AR Tracked Object.
- 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):
