Game Development Reference
In-Depth Information
While any new game object you create will be automatically placed at the origin, the Main Camera's
Transform placement it such that these new objects appear in its field of view, as helpfully displayed
for you in the Camera Preview located in the lower right corner of the Scene view (Figure 3-9 ). Enter
Play mode and you'll find the Game view was accurately represented, then exit Play mode.
Figure 3-9. Camera Preview showing the Cube game object
Camera
The Main Camera is a game object that contains a camera component. For simplicity it's easier to just
call it “camera.” The actual camera component has a number of properties, briefly described next.
Clear Flags
Clear Flags is used to set the background. The background is whatever is left over after all of the
game elements have been drawn. The default is Skybox, but as yet there is no Skybox asset set in
this project. Let's take care of that now.
In the Unity top menu select Assets ➤ Import Package ➤ Skyboxes. The Import window will have
every skybox option from the Standard Assets checked already. Leave them checked, click Import,
and you'll see them appear in the Project view. You might just see a Standard Assets folder appear.
Go ahead and expand the Standard Assets/Skyboxes/Textures folders until you see the selection of
skybox textures (Figure 3-10 ). Take a moment to check them out and decide which one you want to
apply to the scene.
 
Search WWH ::




Custom Search