Creating and executing a project, UI, folder structure

Notes:

I. What and Why Unity + C#: [Starts At = 00min:00sec]
II. Creating a new project in Unity: [Starts At = 02min:56sec]
III. Introduction to Unity interface: [Starts At = 09min:59sec]
IV. Creating a C# script and executing: [Starts At = 19min:08sec]
V. Flow of execution of the project: [Starts At = 29min:15sec]
VI. Saving the Scene: [Starts At = 31min:33sec]
VII. Folder structure of Unity project: [Starts At = 33min:41sec]

I. What and Why Unity + C#: [Starts At = 00min:00sec]
What is Unity ( Game Engine ) :
Unity game engine is an ultimate game development platform for video game development.
It has collection of API's like Audio, Rendering, Physics, etc.
It has no builtin capacity to implement logics, So we take help of C#.

What is C# ( pronounced as C sharp ) :
C# is an object oriented programming language.
Unity uses C# behind the scene to implement logics.
It also supports other languages like javascript and boo.
But we use C# which is a standard in the industry.

Unity (Presentation) + C# (Behaviour) : for game development

II. Creating a new project in Unity: [Starts At = 02min:56sec]
Step 1:
Double click on unity icon.
Step 2:
Click on new project button.
Step 3:
Give project name.
Pascal vs Camel case naming conventions:
In programming they are practices of writing identifier names,
in Pascal case naming convention every word in the identifier should start with capital letter. Whereas
in Camel case naming convention first word should be in lowercase then onward every other word first letter should be capital.
Use Pascal case naming convention for file and folder names.
Step 4:
Locate the location to save.
Step 5:
Select 2D or 3D project.
Step 6:
Click on create project button.

III. Introduction to Unity UI: [Starts At = 09min:59sec]
Unity editor gets open with some initial layout.
Layout: is arrangement of panels (Layout dropdown list)
1. Heirarchy panel:
Lists out all game objects present in the current scene
2. Scene panel:
Used to edit game scene. A scene indicates a screen or game level
3. Game panel:
Displays how the player sees the game through the camera
4. Inspector panel:
Displays the properties of a selected game object or an asset.
Used to inspect and edit game objects or assets properties.
5. Project panel:
Used to manage game assets like Scenes, fonts, images, video, scripts, materials, 3d models etc.
6. Console panel:
Displays different informations like errors, warnings, exceptions, log messages etc.

IV. Creating a C# script and executing: [Starts At = 19min:08sec]
Step 1.
Create a folder by right clicking on Assets folder in Project panel,
go to create and click on folder option.
Name it Scripts.
Step 2.
Create a C# script by right clicking on Scripts folder,
go to create and click on C# Script option.
Name it FirstScript by following Pascal case naming convention.
Step 3.
Double click to open FirstScript.
Unity opens the file in default script editor known as MonoDevelop.
Mono Develop ( IDE ) : [Integrated Development Environment]
We edit, compile, run and debug all our c# codes in MonoDevelop.
Step 4.
Type print("Hello Unity"); in Start method. Save File.
Step 5.
Must and should attach a script to Main Camera by selecting Main Camera,
go to inspector panel click on Add Component button,
click on scripts and select FirstScript for execution
Step 6.
Click on the Play button to execute the code or stop the execution of code.

V. Flow of execution of the project: [Starts At = 29min:15sec]
On click of a play button Unity builds and runs the project.
It creates game objects present in the scene one by one,
it adds the attached components one by one to game objects,
if there is a script attached then goes to start method of the script executes the code inside it.

VI. Saving the Scene: [Starts At = 31min:33sec]
Step 1.
Create a folder by right clicking on Assets folder in the Project panel,
go to create and select Folder option.
Name it Scenes.
Step 2.
Go to file, select Save Scene As option, locate and open Scenes folder.
Step 3.
Give File name as Current by following Pascal case naming convention.
On click of Save button unity creates Current.unity scene in the Scenes folder.

VII. Folder structure of Unity project: [Starts At = 33min:41sec]
Assets folder:
Contains game assets and meta data, Unity refers this folder in Project panel.
Library folder:
Contains list of libraries used by the project
Project Settings:
Contains settings of the project
Temp folder:
Created temporarily while project execution