O'Reilly logo

Augmented Reality Game Development by Micheal Lanham

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the camera as our scene backdrop

As you may have already noticed when we created the Catch scene, we already put in place a UI element that will act as our scene backdrop. The Camera_Backdrop object we set up will display the device's camera as a texture. Follow these instructions to add the script and get the camera view as the scene backdrop:

  1. From the menu, select Assets | Import Package | Custom Package...
  2. When the Import package... dialog opens, navigate to the downloaded source code Chapter_5_Assets folder. Select the Chapter5_import2.unitypackage and click on Open to import the package.

    Tip

    This package is a full import of the FoodyGo assets, and not all of your scripts may need to be updated. However, if you have made your own modifications ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required