Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:03,190 --> 00:00:08,590
Hello, everyone, and welcome to this first lecture in our Unity Multiplex's and this lecture, we
2
00:00:08,590 --> 00:00:13,380
will be setting up unity and importing the packages we need to be able to build our multiplayer game.
3
00:00:13,900 --> 00:00:18,450
So to start off, we're assuming for this course that you already have the unity hub installed.
4
00:00:18,460 --> 00:00:22,840
And as for the version we're using, we'll be using version twenty twenty point one.
5
00:00:23,350 --> 00:00:25,820
The patch that comes afterwards isn't really that important.
6
00:00:25,840 --> 00:00:29,470
So as long as you'll start off with twenty twenty point one, you'll be good to go.
7
00:00:29,590 --> 00:00:34,540
And even if you're using a newer version when twenty twenty point two is out or even off into the future,
8
00:00:34,540 --> 00:00:36,520
it'll probably be OK to then.
9
00:00:36,520 --> 00:00:40,840
Of course, for those of you who don't have twenty twenty point one head over to the blue add button
10
00:00:40,840 --> 00:00:44,260
and it should be right at the top here on the latest official releases.
11
00:00:44,440 --> 00:00:47,050
As you can see, mine's great out because I already have it installed.
12
00:00:47,050 --> 00:00:50,550
I've got the latest version, so just try installing the latest version for you.
13
00:00:51,040 --> 00:00:54,940
So once that's installed and you're on the right version of the unity, we can head over to projects
14
00:00:55,270 --> 00:00:57,760
a little down arrow and make sure you select the correct version.
15
00:00:57,760 --> 00:00:58,930
Twenty twenty point one.
16
00:00:59,710 --> 00:01:05,110
We'll be naming this multiplayer BASIX because Section one is all about the basics of multiplayer.
17
00:01:05,110 --> 00:01:07,750
And then in section two, we'll actually be building a full game.
18
00:01:07,990 --> 00:01:09,490
So multiplayer basics.
19
00:01:09,820 --> 00:01:14,530
And as for the template, it's not too important, but I'll be using the Universal Arenda pipeline.
20
00:01:14,560 --> 00:01:16,240
It's just a simple project sets up.
21
00:01:16,240 --> 00:01:19,600
It makes the game look pretty good by default and it'll run on any device.
22
00:01:19,990 --> 00:01:22,960
Once you filled this in and selected your directory, let's press create.
23
00:01:24,130 --> 00:01:28,450
Once your project opens up, it should look a little like this and we don't need most of the stuff that
24
00:01:28,450 --> 00:01:29,500
it gives us in the template.
25
00:01:29,590 --> 00:01:31,030
So let's delete the read me.
26
00:01:31,030 --> 00:01:31,600
That's just this.
27
00:01:31,600 --> 00:01:32,260
We don't need it.
28
00:01:32,800 --> 00:01:34,270
We don't need that material info.
29
00:01:34,960 --> 00:01:36,880
However, we do want to keep the settings.
30
00:01:36,940 --> 00:01:38,020
These are the graphics settings.
31
00:01:38,020 --> 00:01:38,770
We can keep these.
32
00:01:39,670 --> 00:01:42,150
It'll give us one script, the simple camera controller.
33
00:01:42,160 --> 00:01:43,210
We can get rid of that, too.
34
00:01:43,210 --> 00:01:43,990
We don't need that.
35
00:01:43,990 --> 00:01:48,100
We'll be making our own later and we can then go to the camera and delete the script.
36
00:01:48,100 --> 00:01:48,760
It says it's missing.
37
00:01:48,760 --> 00:01:52,510
Now let's remove that so we don't get any errors in scenes.
38
00:01:52,510 --> 00:01:53,260
We just felt the scene.
39
00:01:53,260 --> 00:01:55,060
That's fine presets.
40
00:01:55,060 --> 00:01:57,690
More settings we can keep for now materials.
41
00:01:57,700 --> 00:01:58,660
It has the skybox.
42
00:01:58,660 --> 00:01:59,320
I quite like this.
43
00:01:59,320 --> 00:02:03,730
We'll leave it for now and then again processes everything else in the scene that we don't need.
44
00:02:03,850 --> 00:02:04,930
So we can delete those.
45
00:02:05,350 --> 00:02:10,630
Then up in the hierarchy, we don't need the ten plus sets anymore and we can keep the post-processing
46
00:02:10,630 --> 00:02:12,010
and the lighting just how it is.
47
00:02:12,130 --> 00:02:13,600
It's up to you if you want to go mess with that.
48
00:02:13,600 --> 00:02:18,160
But I won't be doing it now and now our project is ready to start importing packages.
49
00:02:18,490 --> 00:02:21,970
Most of the packages will be downloading from the unity package manager.
50
00:02:22,270 --> 00:02:26,620
And if you don't already have Mirah, which is the networking solution we're using for this course,
51
00:02:26,620 --> 00:02:28,060
most of you probably won't have it.
52
00:02:28,240 --> 00:02:31,210
We need to head to the asset store, which is now online only.
53
00:02:31,210 --> 00:02:32,200
So search online.
54
00:02:33,280 --> 00:02:37,030
And what we want to do is make sure you are signed in to the unity website, OK?
55
00:02:37,060 --> 00:02:38,040
Make sure you've got your face.
56
00:02:38,120 --> 00:02:40,660
If not, then sign in, then search for assets.
57
00:02:40,660 --> 00:02:42,330
We want mirror like.
58
00:02:42,580 --> 00:02:48,640
So his mirror is moved down a bit and you need to make sure that you've got it to stay open.
59
00:02:48,640 --> 00:02:52,030
And unity of wise, it might say, add to my assets or something.
60
00:02:52,030 --> 00:02:53,890
Whatever the blue button says, you should click on it.
61
00:02:54,130 --> 00:02:54,700
You'll get it.
62
00:02:54,700 --> 00:02:55,690
It's free as it says here.
63
00:02:55,870 --> 00:02:58,270
And then once you've got it, you can open a unity.
64
00:02:58,390 --> 00:03:00,820
Then if you click on that, it will open it inside unity.
65
00:03:01,270 --> 00:03:02,920
Otherwise you can do it this way.
66
00:03:02,920 --> 00:03:06,130
Once you've added it, you can then go window package manager.
67
00:03:06,250 --> 00:03:09,100
And this is for anyone who already is maybe messed around with it.
68
00:03:09,250 --> 00:03:10,870
It'll be in package manager.
69
00:03:10,960 --> 00:03:12,730
My assets mirror.
70
00:03:13,240 --> 00:03:17,650
Once it's in your package manager, you can then press import and in a second it will let you import
71
00:03:17,650 --> 00:03:19,180
it to your project.
72
00:03:19,390 --> 00:03:24,430
We want anything inside mirror, but we don't want to mess with anything in script templates or streaming
73
00:03:24,430 --> 00:03:24,760
assets.
74
00:03:24,760 --> 00:03:26,350
We just don't need those future.
75
00:03:26,350 --> 00:03:31,240
Nathan, have one quick thing to mention is that it seems they've removed the script templates and streaming
76
00:03:31,240 --> 00:03:32,920
assets from the unity package.
77
00:03:32,920 --> 00:03:37,330
So if you just have a folder and that's it, then you can just leave it as it is an input.
78
00:03:37,750 --> 00:03:40,540
So let's import this as it is and I'll be back in a minute.
79
00:03:41,200 --> 00:03:45,610
Once it's done, you can close the package manager and you'll see a mirror folder inside your assets.
80
00:03:45,760 --> 00:03:49,210
And then up in the hierarchy, we can make an empty game object.
81
00:03:49,210 --> 00:03:55,120
And let's just check on a network network manager like you see here, all these mirror icons, the blue
82
00:03:55,120 --> 00:03:57,760
squares, lets you know that it's imported correctly.
83
00:03:58,330 --> 00:03:58,960
Let's remove that.
84
00:03:58,960 --> 00:03:59,770
We don't actually need it.
85
00:03:59,890 --> 00:04:04,090
And let's move on to importing the other packages to import the other packages.
86
00:04:04,090 --> 00:04:09,460
We head back to the package manager and we can switch to in project and I'll show you all the packages
87
00:04:09,460 --> 00:04:10,360
that are currently installed.
88
00:04:10,570 --> 00:04:14,710
Now, you don't have to do this, but what I'll be doing is I'll be removing the packages we're not
89
00:04:14,710 --> 00:04:15,340
going to use.
90
00:04:15,340 --> 00:04:17,170
You could just leave them in that if you'd like.
91
00:04:17,290 --> 00:04:18,700
But I'm going to be removing those.
92
00:04:18,730 --> 00:04:22,840
I'll be updating any ones that need to be updated and then adding any new ones.
93
00:04:22,870 --> 00:04:27,010
So the first thing will do actually we'll start adding the ones we want and then remove the other ones.
94
00:04:27,040 --> 00:04:29,440
So head over to the unity registry.
95
00:04:29,650 --> 00:04:31,630
This gives you all the packages you can get.
96
00:04:32,050 --> 00:04:37,300
But we want to enable preview packages because one of the packages we'll be using is not actually on
97
00:04:37,300 --> 00:04:38,920
this list because it's in preview.
98
00:04:39,190 --> 00:04:44,440
So the way you do this is you head to the COG Advanced Project settings and check and they will preview
99
00:04:44,440 --> 00:04:45,040
packages.
100
00:04:45,370 --> 00:04:50,860
So you understand that they're in early development and you see some preview packages.
101
00:04:51,160 --> 00:04:54,010
We want to add programs as our previous package.
102
00:04:54,010 --> 00:04:54,460
Here we go.
103
00:04:54,460 --> 00:05:01,480
Programs install and give it a second result in packages and porting.
104
00:05:01,820 --> 00:05:06,890
And then any second now, it should be done once this is done, I'll show you how to do one of the other
105
00:05:06,890 --> 00:05:08,730
packages, which is the input system.
106
00:05:09,020 --> 00:05:12,880
This one takes a little longer because it has to actually restart unity.
107
00:05:12,890 --> 00:05:17,570
So obviously, I'll be skipping ahead for that part and then for the rest of them, I'll be giving you
108
00:05:17,570 --> 00:05:18,190
a challenge.
109
00:05:18,200 --> 00:05:24,680
So let's go find the input system obviously easier just to type input input system and install.
110
00:05:25,190 --> 00:05:30,170
And if we give this a second, actually, because, as I said, to restart unity, you'll get to this
111
00:05:30,170 --> 00:05:35,060
point with a warning that says the new input system will disable the old input system that will require
112
00:05:35,060 --> 00:05:36,060
you to restart the Editta.
113
00:05:36,260 --> 00:05:36,610
Yes.
114
00:05:38,150 --> 00:05:39,620
So unity is back open.
115
00:05:39,620 --> 00:05:42,800
And now if we search for input, you'll see it's got a tick.
116
00:05:42,800 --> 00:05:43,570
It's, what, just five?
117
00:05:44,270 --> 00:05:48,920
And I'll be giving you a challenge in a second to actually import the remaining packages as well as
118
00:05:48,920 --> 00:05:51,260
if you want, you can remove the ones that we don't need.
119
00:05:51,500 --> 00:05:52,670
So I'll be giving you a list.
120
00:05:52,670 --> 00:05:54,220
Some of them you'll already have installed.
121
00:05:54,230 --> 00:05:58,120
You can ignore those, some you haven't got and some you will have that you don't even need.
122
00:05:58,130 --> 00:05:59,520
So you can remove them if you'd like.
123
00:05:59,990 --> 00:06:01,520
Here's a list how it is currently.
124
00:06:01,670 --> 00:06:02,870
Remember to add two new ones.
125
00:06:02,870 --> 00:06:07,190
You have to go back to the registry and add them and to remove you just click and then press remove
126
00:06:07,190 --> 00:06:07,470
here.
127
00:06:08,000 --> 00:06:09,260
So back to the registry.
128
00:06:09,680 --> 00:06:12,260
The things you need to import are as follows.
129
00:06:12,650 --> 00:06:16,500
So we need to import the remaining packages, send a machine to work with cameras.
130
00:06:17,150 --> 00:06:22,250
The input system, which we've already just done, pro build and programs work together for helping
131
00:06:22,250 --> 00:06:26,690
us build level quickly and obviously for programs you need the previous packages, but I've already
132
00:06:26,690 --> 00:06:31,490
gone through that with you, just in case you forgot that or this text message should be already installed
133
00:06:31,490 --> 00:06:32,030
anyway.
134
00:06:32,660 --> 00:06:35,990
Units, the UI should also be installed anyway, but they've made that package now.
135
00:06:35,990 --> 00:06:40,340
So I put it on the list, universal in pipeline that came of our template.
136
00:06:40,340 --> 00:06:42,800
So that's really down to whether you want to use this template.
137
00:06:43,430 --> 00:06:48,470
And finally, the Visual Studio Code editor for those of you who are using Visual Studio code like me,
138
00:06:48,860 --> 00:06:53,810
there are some of the edits, a plugins like for Writer and Visual Studio, Community Edition.
139
00:06:54,020 --> 00:06:57,650
So it's up to you to get the one that matches which version of using.
140
00:06:58,280 --> 00:07:02,090
So go ahead post the video and have a go getting your packages to look like this.
141
00:07:05,620 --> 00:07:08,050
Welcome back, I hope you post the video and gave that a go.
142
00:07:08,200 --> 00:07:09,420
Let's head back over into.
143
00:07:10,180 --> 00:07:13,350
I'm going to do it as well and I'll timelapse it so it doesn't take forever.
144
00:07:13,360 --> 00:07:17,770
While also talking about packages in general for those of you who aren't used to adding all these kind
145
00:07:17,770 --> 00:07:18,390
of packages.
146
00:07:19,060 --> 00:07:23,800
So the reason we're using packages and why unity made it like this is because we don't actually want
147
00:07:23,800 --> 00:07:25,360
some things in our projects.
148
00:07:25,360 --> 00:07:27,370
Some projects want some things, some one others.
149
00:07:27,490 --> 00:07:30,400
So allows us to add and remove what we even need or don't need.
150
00:07:30,640 --> 00:07:34,840
So, for example, the UI you'd think most people need in every single game.
151
00:07:34,840 --> 00:07:39,790
But keep in mind, unity isn't just a game and it might be used for film and in film that might not
152
00:07:39,790 --> 00:07:40,480
be UI.
153
00:07:40,480 --> 00:07:42,010
So just remove that package, right.
154
00:07:42,310 --> 00:07:46,450
For all these different packages, you need them in different scenarios, so allows you to when you
155
00:07:46,450 --> 00:07:47,440
need something to edit.
156
00:07:47,440 --> 00:07:52,450
So throughout working on a project, you might decide you need timeline so you can just add in timeline
157
00:07:52,630 --> 00:07:57,580
and it means that you only have the stuff that you need when you need it and it doesn't clutter up your
158
00:07:57,580 --> 00:07:58,050
project.
159
00:07:58,990 --> 00:07:59,790
And now that's done.
160
00:07:59,860 --> 00:08:07,270
So we have snowmachine machine input system pribyl the grids text pro to UI universe around the pipeline
161
00:08:07,270 --> 00:08:08,410
and the visual studio code.
162
00:08:08,410 --> 00:08:09,450
Edita ready to go.
163
00:08:09,910 --> 00:08:14,500
And for those of you who are using the Visual Studio Code editor, then we can head over to Visual Studio
164
00:08:14,500 --> 00:08:19,990
Code, the two packages I'll be using as a C shop package here and the debugger for unity.
165
00:08:20,230 --> 00:08:20,950
So only these two.
166
00:08:21,780 --> 00:08:26,890
And one last thing is that now that we have the pro builder and Procrit packages, they both have their
167
00:08:26,890 --> 00:08:27,850
own bits of UI.
168
00:08:28,000 --> 00:08:33,340
And if you continue watching the course, you might notice in some lecture's bits that UI might be on
169
00:08:33,340 --> 00:08:36,400
my screen and you don't have to worry about it not being on your screen.
170
00:08:36,400 --> 00:08:37,870
It's not going to affect anything.
171
00:08:37,990 --> 00:08:41,420
We're not using it till very later on in the course when we do some level design.
172
00:08:41,560 --> 00:08:44,080
So if we go to the scene view, you might notice this.
173
00:08:44,080 --> 00:08:44,770
You might not.
174
00:08:44,950 --> 00:08:47,320
And it doesn't matter if it's here or not, you can close it.
175
00:08:47,320 --> 00:08:49,720
If it is and you want it, you can just ignore it.
176
00:08:50,380 --> 00:08:55,300
If you do want to know now how to turn it on, you just go tools, progress and you hit progress when
177
00:08:55,310 --> 00:08:58,390
notes turn it on and build the you can turn this on.
178
00:08:58,720 --> 00:09:03,070
And like I said, that just level design tools that we'll be using later on in the course, we just
179
00:09:03,070 --> 00:09:06,880
install them now so that we have to come back later and do more installation.
180
00:09:07,030 --> 00:09:10,330
So if they all that you can ignore them and if they're not there, don't worry.
181
00:09:11,230 --> 00:09:12,490
And that's it for this lecture.
182
00:09:12,490 --> 00:09:14,830
We've made sure everyone's on the right version of unity.
183
00:09:15,010 --> 00:09:18,760
We've installed any packages that we need and got rid of any things that we don't need.
184
00:09:19,030 --> 00:09:23,530
I've made sure that anyone using visual studio code, I can follow along with the right add ons and
185
00:09:23,530 --> 00:09:25,450
we're ready to start building our multiplayer game.
18082
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.