WEBVTT

00:00.000 --> 00:03.080
We're going to build our game for website by now.

00:03.120 --> 00:04.880
To do so, we need to head over to.

00:04.920 --> 00:06.040
Top left file.

00:06.040 --> 00:11.040
Then click on this build profiles in the bottom and then you will be in.

00:11.080 --> 00:11.960
The windows.

00:11.960 --> 00:15.360
And you're going to see a active button right over here.

00:15.360 --> 00:16.880
So make sure you select your.

00:16.920 --> 00:17.440
Web.

00:17.440 --> 00:23.600
And then in the top right in this build profile tabs you're gonna see a switch platform button.

00:23.600 --> 00:27.240
So just click on that and you're gonna switch over to your web.

00:27.520 --> 00:33.240
And if you are unable to do this so make sure you just open up your Unity Hub.

00:33.240 --> 00:35.960
And in the left bar you can see an install.

00:35.960 --> 00:40.480
So just click on that and choose the unity version that you are using.

00:40.480 --> 00:45.120
And in the right see right side you're gonna see a settings icon the cogwheel.

00:45.120 --> 00:48.880
So just click on it and then click on this Add Modules.

00:48.880 --> 00:51.200
And over here you need to find the web.

00:51.480 --> 00:52.840
So just wait a moment.

00:53.080 --> 00:55.080
So I already installed it.

00:55.240 --> 01:00.240
Uh so I have it uh, I have it over here.

01:00.240 --> 01:05.040
So make sure you select this WebGL WebGL build support or windows build support.

01:05.040 --> 01:09.760
Basically check that and then click on this install button in the bottom right.

01:09.800 --> 01:12.080
You can see in your this tab.

01:12.080 --> 01:18.880
So once you were done then you can open up your basically Unity Hub once again and then open up your

01:18.920 --> 01:21.040
project in Unity editor.

01:21.040 --> 01:23.880
So I'm going to cut this step since I already done it.

01:23.880 --> 01:29.520
So select your web and you're gonna see a switch platform button in the top right in this Build Profiles

01:29.520 --> 01:30.160
tab.

01:30.160 --> 01:33.400
So just click on it and you're gonna move over to web.

01:33.600 --> 01:39.360
And once you're gonna see active button in the right side of this web, uh, it's basically means you

01:39.360 --> 01:43.920
can make your game for website or you can build your game for website.

01:43.960 --> 01:46.400
To do that, firstly, we need to do some settings.

01:46.400 --> 01:49.680
In the top we can see player settings uh in the top bar.

01:49.680 --> 01:56.120
So just click on it and what you have to do right over here you can drag the icon.

01:56.880 --> 01:59.280
You can drag the icon right over here.

01:59.440 --> 02:03.520
So basically we don't have to do anything else right over here.

02:03.720 --> 02:07.800
Uh basically we already have done it like company name space.

02:07.960 --> 02:09.160
So we don't have to do.

02:09.200 --> 02:15.310
And if we move over to resolution and presentation, we can just preview that as well.

02:15.310 --> 02:18.430
You can choose any of them, but leave it to default.

02:18.430 --> 02:19.750
It's gonna be fine.

02:19.750 --> 02:26.550
And we can just move over to splash screen, and we can just click on this preview in order to see that.

02:26.790 --> 02:28.150
And now it's fine.

02:28.150 --> 02:31.590
And we're gonna move over to Next Settings which is other settings.

02:31.830 --> 02:36.550
And right over here we don't have to do anything like that.

02:36.790 --> 02:39.030
So we can just skip this setting.

02:39.030 --> 02:42.710
So we're gonna move over to our publishing settings.

02:42.710 --> 02:44.910
And this one is too much important.

02:44.910 --> 02:49.310
So make sure you just move over to publishing settings publishing settings.

02:49.790 --> 02:55.870
And over here you can notice that compression format in and it's set properly.

02:55.870 --> 03:03.030
So from this properly select this disable just disable this compression for format and make sure you

03:03.030 --> 03:03.710
just do it.

03:03.710 --> 03:05.750
Else you're not gonna able to play.

03:05.910 --> 03:08.510
Or you upload your game to your website.

03:08.510 --> 03:10.510
So you need to make sure that.

03:10.510 --> 03:16.510
So move over to this publishing publishing settings and compression Competition format to choose this

03:16.510 --> 03:17.110
disable.

03:17.350 --> 03:23.630
And once we are done and we don't have to do anything else right over here so we can build our game

03:23.630 --> 03:24.430
right now.

03:24.550 --> 03:26.830
So I'm going to click on this tab as well.

03:26.830 --> 03:28.710
We can cut this tab as well.

03:29.190 --> 03:31.950
And we can move over to top left file one more time.

03:31.950 --> 03:36.070
Then build profiles and we can click on this build and run.

03:36.070 --> 03:39.310
So let's click on it to build our game for website.

03:39.310 --> 03:41.550
So I'm going to click on it Build and Run.

03:41.910 --> 03:45.590
And we're gonna choose a separate folder for this website build.

03:45.590 --> 03:48.390
So when I create a separate folder for this.

03:48.390 --> 03:52.310
So let's right click New and Folder.

03:52.310 --> 04:00.590
And we're going to call this folder to something like a web WebGL web build build something like that

04:00.590 --> 04:01.630
we can call it.

04:01.790 --> 04:03.150
And let's hit enter.

04:03.150 --> 04:05.110
And we're going to select this folder.

04:05.110 --> 04:08.270
So let's select this folder and let's click on this select folder.

04:08.270 --> 04:10.470
In the bottom right we can see.

04:10.790 --> 04:18.990
And as soon as you click on it and it's gonna make our game or just gonna build our game for website

04:18.990 --> 04:20.670
and it's going to be fine.

04:20.990 --> 04:28.830
And it can take up to something like from 10 minutes to 40 minutes, depending upon how much, how much

04:28.870 --> 04:35.950
your game heavy is basically how many assets you just drag it in your project as well as it's going

04:35.950 --> 04:38.390
to depend upon on your system.

04:38.390 --> 04:40.190
If you do have a fast system.

04:40.470 --> 04:44.870
So once again, it's just gonna make within a few minutes.

04:44.870 --> 04:52.990
But if you do have a slow system like me, I have it's going to take up to something like 20 to 30 minutes.

04:52.990 --> 04:58.390
But it's totally gonna depend upon on on our project.

04:58.390 --> 05:01.790
If the game is heavy, then it's going to take too much time.

05:01.790 --> 05:05.510
If it's lightweight, then it's gonna take few minutes.

05:05.510 --> 05:07.310
So I hope you get the idea.

05:07.710 --> 05:12.470
And, uh, let's, uh, let's leave it for, uh, to build our game.
