Welcome to chapter 1 of the Unity Beginner’s Game Tutorial.
In this chapter we will create the Unity project that will become our game.
Create a New Project:
Select ‘Create New’ from the project creation wizard.
Select ‘Create New Project
from the Unity Project Wizard.
If the Project Wizard is not displayed when you open Unity then go to File -> New Project
in the Unity Menu
Choose Location for the Unity Project:
Create a folder called ‘Avoider Project’ to store the Unity project.
Browse to the location you would like to create your Unity project and create a folder called Avoider Project
. Select this folder using the Project Wizard. Unity stores its projects as folders on the user’s file system.
Select Defaults for Unity 2D:
Select defaults for 2D from the project wizard.
As this is a 2D game we are creating we must set Unity up for 2D development. This is done by selecting the defaults for 2D in the Project Wizard.
Create The Project:
Click ‘Create’ on the Project Wizard.
Click ‘Create’ on the Project Wizard and Unity will create the project.
Set the Screen Layout:
Set the screen layout to ‘2 by 3’.
Click the layout selector at the very top-right of the screen and select ‘2 by 3’
. This layout has everything we will need to create the project. You can experiment with the layout to set things up as you prefer but this tutorial will reference the 2 by 3 layout.
Components of the Unity Editor:
The Unity Editor
Now we can see on screen all the components of the Unity editor.
Their functions are as follows:
- Scene View – This view displays the current scene and the objects within. It allows us to edit and move the objects that compose the scene.
- Game View – This view displays the current scene as it will appear when the game is being played.
- Hierarchy – This view lists the objects that are in the current scene.
- Project – This view lists all of the objects that exist in the entire project, including files such as audio clips and images.
- Inspector – This view displays the properties of the currently selected object. It lists all components attached to the object and allows you to modify settings.
Set the Scene View Camera to 2D:
Set the Scene View to 2D.
Click on the ‘2D’
button in the Scene View
toolbar. This will set up the camera in the scene view for use in 2D editing.
Setting up the Web Player:
Access Player Settings
For this project we will be targeting the Unity Web Player with a resolution of 800 x 600
We must specify the resolution in the Player Settings.
To access the player settings select ‘Edit – Project Settings – Player’
from your main toolbar.
This will cause the player settings to be displayed in your inspector.
Ensure that the Web Player is selected in the Inspector. (The icon is circled in the screenshot.)
Player Settings in Inspector
Set the resolution to 800 x 600
Save The Scene:
Save the scene as ‘game_scene’ in a new folder called ‘scenes’.
In the Unity toolbar select ‘File – Save Scene’
to open the save scene dialogue.
Create a new folder for the scene called ‘scenes’
Save the scene as ‘game_scene’
We have created an empty Unity project and configured it for our game.
In the next tutorial we will discuss importing game assets.