Adding objects

We're now ready to add virtual objects to the scene. For this project, we want to augment the business card with a flying drone quadcopter.

In AR, when the camera recognizes a target, we want the associated objects to appear and augment the scene. This association is defined by making the virtual objects a child of the target in the Hierarchy.

First, we'll remove the cube and then add the drone:

  1. If you added a cube under ImageTarget you can delete it now (right-click Delete).

Assuming you have the SimpleDrone.unitypackage file provided with the file downloads for this book from the publisher, you can import it now in Unity.

  1. From main menu choose Assets | Import Package | Custom Package, locate the SimpleDrone package file ...

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.