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 to some of the scripts, this will overwrite your changes. If you have changes you want to preserve, then either back up the files to a new location or do an asset export of just the files you want to keep.
- After the Unity Import Package dialog...