Game Development Reference
In-Depth Information
The Inspector panel doesn't just display a list of the components attached to a game object; it is
also an interface for configuring the component properties. You can type in new values to change
any of the default settings for the trio of Transform properties. Alternatively, you can visually
manipulate the game object gizmo in the Scene view by clicking and dragging the gizmo handles,
and see these changes reflected in the Inspector. Go ahead and give it a try. Remember, you can use
the W, E, and R keys to quickly alternate between the Transform properties.
In the upper right corner, the little blue book with the question mark is a link to Unity's Component
Reference. The gear icon gives you a means to quickly reset to the component's default values,
along with other editing functions (Figure 3-7 ). When you are done test-driving the Cube transform
gizmo, reset the Transform properties.
Figure 3-7. Component gear icon drop-down menu
Unity expedites the game development process by providing out of the box many of the
components that game developers most commonly use. Scripts are components, too—they also
affect the look, behavior, or interaction of game objects. Scripts are essentially custom components
that you create for the unique requirements of your game.
The Main Camera
The new scene wasn't created completely empty; it comes prepopulated with one game object,
the Main Camera game object. Like any game object, you can move it, apply scripts to it, and do
anything else that applies to game objects in general. The Main Camera is the viewport through
which the player sees the scene. It's not much of a game if you can't see it, so it makes sense that
this is always included in a new scene. Select the Main Camera in the Scene view or Hierarchy view
to display its contents in the Inspector (Figure 3-8 ).
 
Search WWH ::




Custom Search