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:
- From the menu, select Assets | Import Package | Custom Package...
- When the Import package... dialog opens, navigate to the downloaded source code
Chapter_5_Assets
folder. Select theChapter5_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 ...
Get Augmented Reality Game Development 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.