Creating the basic scene for this chapter
All the recipes in this chapter start off with the same basic scene, featuring a 3D maze, some objects, and a keyboard-controllable 3D character. In this recipe, you'll create a project with such a scene, which can be duplicated and adapted for each recipe that follows.

Getting ready
For this recipe, we have prepared a Unity package named CamerasChapter.unity
, containing all the resources needed for this chapter. The package can be found in the 06_01
folder.
How to do it...
To create the basic scene for this chapter, just follow these steps:
- Create a new 3D project.
- Import the CamerasChapter package into your Unity Project.
- In the
Project
panel, you'll find three Prefabs in thePrefabs
folder (maze-floor-walls
,maze-objects
,character-MsLazer
). Create GameObjects for each of these three Prefabs by dragging the Prefabs from the Project panel into the Hierarchy orScene
panels. - You should now have a maze with a floor, some walls, some Sphere objects, a green...