We're going to build our game for website by now.
To do so, we need to head over to.
Top left file.
Then click on this build profiles in the bottom and then you will be in.
The windows.
And you're going to see a active button right over here.
So make sure you select your.
Web.
And then in the top right in this build profile tabs you're gonna see a switch platform button.
So just click on that and you're gonna switch over to your web.
And if you are unable to do this so make sure you just open up your Unity Hub.
And in the left bar you can see an install.
So just click on that and choose the unity version that you are using.
And in the right see right side you're gonna see a settings icon the cogwheel.
So just click on it and then click on this Add Modules.
And over here you need to find the web.
So just wait a moment.
So I already installed it.
Uh so I have it uh, I have it over here.
So make sure you select this WebGL WebGL build support or windows build support.
Basically check that and then click on this install button in the bottom right.
You can see in your this tab.
So once you were done then you can open up your basically Unity Hub once again and then open up your
project in Unity editor.
So I'm going to cut this step since I already done it.
So select your web and you're gonna see a switch platform button in the top right in this Build Profiles
tab.
So just click on it and you're gonna move over to web.
And once you're gonna see active button in the right side of this web, uh, it's basically means you
can make your game for website or you can build your game for website.
To do that, firstly, we need to do some settings.
In the top we can see player settings uh in the top bar.
So just click on it and what you have to do right over here you can drag the icon.
You can drag the icon right over here.
So basically we don't have to do anything else right over here.
Uh basically we already have done it like company name space.
So we don't have to do.
And if we move over to resolution and presentation, we can just preview that as well.
You can choose any of them, but leave it to default.
It's gonna be fine.
And we can just move over to splash screen, and we can just click on this preview in order to see that.
And now it's fine.
And we're gonna move over to Next Settings which is other settings.
And right over here we don't have to do anything like that.
So we can just skip this setting.
So we're gonna move over to our publishing settings.
And this one is too much important.
So make sure you just move over to publishing settings publishing settings.
And over here you can notice that compression format in and it's set properly.
So from this properly select this disable just disable this compression for format and make sure you
just do it.
Else you're not gonna able to play.
Or you upload your game to your website.
So you need to make sure that.
So move over to this publishing publishing settings and compression Competition format to choose this
disable.
And once we are done and we don't have to do anything else right over here so we can build our game
right now.
So I'm going to click on this tab as well.
We can cut this tab as well.
And we can move over to top left file one more time.
Then build profiles and we can click on this build and run.
So let's click on it to build our game for website.
So I'm going to click on it Build and Run.
And we're gonna choose a separate folder for this website build.
So when I create a separate folder for this.
So let's right click New and Folder.
And we're going to call this folder to something like a web WebGL web build build something like that
we can call it.
And let's hit enter.
And we're going to select this folder.
So let's select this folder and let's click on this select folder.
In the bottom right we can see.
And as soon as you click on it and it's gonna make our game or just gonna build our game for website
and it's going to be fine.
And it can take up to something like from 10 minutes to 40 minutes, depending upon how much, how much
your game heavy is basically how many assets you just drag it in your project as well as it's going
to depend upon on your system.
If you do have a fast system.
So once again, it's just gonna make within a few minutes.
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.
But it's totally gonna depend upon on on our project.
If the game is heavy, then it's going to take too much time.
If it's lightweight, then it's gonna take few minutes.
So I hope you get the idea.
And, uh, let's, uh, let's leave it for, uh, to build our game.