Many of the 3D recipes in this chapter are built on this basic project, which constructs a scene with a textured terrain, a Main Camera, and a red cube that can be moved around by the user with the four directional arrow keys. The bounds of movement of the cube are constrained using the same technique as in the previous 2D recipe.
To create a basic 3D cube controlled game, follow these steps:
Create a new, empty 3D project.
Once the project has been created, import the single Terrain Texture named
SandAlbedo
(it was namedGoodDirt
in Unity 4). Choose menu: Assets | Import Package | Environments, deselect everything, and then locate and tick the asset:Assets/Environment/TerrainAssets/SurfaceTextures/ SandAlbedo.psd
.