Game Development Reference
In-Depth Information
Figure 6-12. Third Person Character sample scene from the Unity Sample Assets (beta) package
In the Project panel, drill down to the Sample Scenes folder and double-click the Third Person
Sandbox (SceneAsset). In the editor top menu, select File ➤ Save Scene As and name it
MyFirstPrototype, and save it in your Assets ➤ Scenes folder.
Unity only shows one scene at a time. The MyFirstPrototype scene should be the active scene now,
but just glance at the top of the editor to make sure. You want to leave the Third Person Sandbox
scene alone to maintain it as an unmodified template that you can copy again for future projects.
First, take a look at the contents of the Scene view in the Hierarchy.
The Floor_Tile is pretty basic with the mandatory Transform component and a Collider component
for physical interactions with other game objects. Expand it to take a look at prototype_floor, which
has the renderer and shader that you can modify to change the appearance of the floor.
Expand the Free Look Camera Rig to find the Main Camera. The components of the rig define
how the camera operates in the game. The attached scripts specifically describe the behavior of the
camera, while a rigidbody is a clue that the camera has a physical presence in the game.
There are two Lights : a Main Directional light that provides a basic white light from above, and an
Ambient Directional light that shines a soft blue light from below, enhancing the 3D characteristics
of the game objects. This second light makes a big difference to the appearance of the game. In the
real world, light is reflected from the ground, walls, windows, and any other object to some extent.
The color of the light is very important for both the look and mood of your game.
The Mobile Character Control Rig is largely made up of scripts that address the different methods
of input for mobile devices and shader replacements that address the reduced graphic processing
capabilities of mobile devices.
 
Search WWH ::




Custom Search