Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Unity Basics!
You have completed Unity Basics!
Preview
Let’s explore the Unity Editor's layout and key windows. We'll go over core concepts like Scenes, Game Objects, and Components, which will help with what’s to come in the next stage.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
All right, welcome back.
0:00
In this video,
we'll take a quick look at Unity Hub
0:02
and then dive into the Unity Editor
interface.
0:04
We'll create our first project and explore
the essential windows and concepts
0:07
you need to know to get started
with Unity development.
0:11
So let's begin with Unity Hub.
0:14
When you open it,
you'll see the Projects tab, where
0:16
all your Unity projects are listed
and managed.
0:19
Next,
we have the installs tab where you can see
0:22
and manage your installed Unity versions,
because Unity allows you
0:24
to have multiple versions
installed at the same time.
0:28
There's also the learn tab
which provides tutorials from Unity
0:31
and the community tab
which contains helpful resources.
0:35
Finally, let's quickly
check out the preferences menu
0:38
by clicking the gear icon in the top right
corner.
0:41
Here you can adjust Unity Hub settings.
0:44
I'm going to set my default
project directory
0:47
and create a new folder on my desktop.
0:49
You can save yours
wherever you wish, though.
0:52
You can also adjust
0:57
other things, such as enabling dark mode,
0:58
and you can check your license again here.
1:01
Cool, now that we understand
Unity Hub, let's jump
1:04
into actually creating a project.
1:07
Go to the Projects
tab and click on New Project.
1:09
You'll see several templates tailored
for different game types and devices.
1:13
Some templates
require additional downloads,
1:18
but we don't need to worry about that
for now.
1:20
Let's select Universal 2D Core.
1:22
Now on the right
we can name our project and choose
1:26
where it should be saved on our machine.
I'll name this Flying Mike,
1:29
and you can see here
it's recognizing my default directory
1:34
that I set. Make sure your organization
is selected here,
1:36
and below that, you'll see options
for Unity Cloud and Unity Version Control.
1:40
Unity Cloud is a cloud-based platform
offering tools for managing,
1:45
collaborating on,
and streamlining workflows for projects.
1:49
And Unity Version
Control is a distributed version
1:52
control system
designed for game development.
1:56
It provides capabilities
tailored for large projects and teams.
1:59
Since these features are outside
the scope of this course,
2:03
we can safely uncheck them for now.
2:05
Finally, let's
2:08
click Create Project
and let Unity do its thing.
2:09
This can take a few minutes,
so pause the video here
2:13
and I'll jump ahead to when it's ready.
2:15
Here we are.
2:19
Welcome to Unity.
2:19
The interface may seem
overwhelming at first, but don't worry,
2:21
we'll go over
the most important windows now,
2:25
and you'll get more comfortable with them
as we start building our game.
2:27
Also, mine may look significantly zoomed
in compared to yours,
2:30
and I've done this just for the sake of
recording these videos.
2:34
Now it shouldn't, but if your overall
layout looks different than mine,
2:38
you can go to Window,
Layouts, and select Default.
2:41
You can also click and drag tabs
to rearrange them,
2:46
or even move them to another screen
if you have multiple monitors.
2:49
Okay, first up is the project window.
2:55
Think of this as a mini file explorer
specifically for your project.
2:58
Everything you import or create
like art, animations,
3:02
scripts and audio files,
they'll all be stored here.
3:06
The console window displays
custom messages, warnings and errors
3:11
from Unity and our scripts.
It's a valuable debugging tool.
3:15
Now, unlike the project window,
which shows everything
3:19
in your entire project,
the hierarchy window displays
3:22
only the game objects
in your current scene.
3:25
For example,
when we create a new scene, Unity
3:28
automatically adds
a main camera game object here.
3:31
The scene view is where we visually build
and edit our game environment.
3:35
It's our personal playground
for placing and adjusting
3:39
objects in the active scene.
3:42
The game view provides a real-time preview
of what the player will see
3:45
when playing the game.
3:48
We're seeing this blue color
because this is a default setting
3:50
on our camera object.
3:53
The Inspector window, located
on the right, displays the components
3:56
and properties of any selected game object
in the hierarchy.
3:59
To see this in action, click on the main
camera game object over in the hierarchy,
4:04
and the Inspector window
will update to show its components.
4:08
There are many other windows
you can bring into the editor,
4:13
and we'll introduce
a few more throughout the course.
4:15
However, these are the most essential
and frequently used ones in my experience.
4:18
Before we move on, let's quickly
go over some
4:23
essential Unity concepts.
4:25
Scenes.
4:29
You can think of scenes as containers
for an individual section of your game.
4:30
For example, you may have
a scene for the main menu,
4:35
a scene for level 1,
4:39
and a boss fight scene.
4:42
Every scene needs a camera object.
4:45
Just filming a movie scene,
what the camera sees the player will see.
4:47
Each scene contains a
collection of game objects.
4:52
So your menu may have UI buttons
for starting the game or quitting.
4:55
Your level 1 may have your main character
object and some platforms. Your boss
4:59
fight may have your main character again
and your big bad boss.
5:04
Game Objects.
5:09
These are the fundamental building blocks
in Unity.
5:11
They can represent characters, environment
elements, cameras, everything.
5:14
You can think of these
as a container as well,
5:19
this time filled with components to form
what we need for this specific object.
5:22
For example, let's say we made a game
object for our main character.
5:27
We can give it a sprite renderer
component to give it an image.
5:32
We can give it a collider to detect
physical contact with other objects.
5:36
We can give it a rigid body
5:41
component to apply physics, like gravity
and mass. And we can write our own code
5:42
in scripts to apply custom logic moving,
5:48
jumping, attacking, etc.
5:51
All of these elements work together
to bring your game to life.
5:54
Scenes are an individual section of your game
and they're comprised of game objects.
5:58
Game objects have components attached
to define what each thing is and does.
6:02
So in the next stage,
we'll create our first game object
6:07
and learn the tools Unity provides
to move, rotate, and scale them.
6:10
See you then!
6:14
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up