WEBVTT

00:00.080 --> 00:04.240
Now we need to make our game for, uh, mobile devices.

00:04.520 --> 00:06.960
Uh, so what we're gonna do, we need to do something.

00:07.000 --> 00:09.880
Firstly, we need to switch over to Android.

00:10.080 --> 00:16.920
To do so, uh, move over to top left file, then click on this build profiles in the bottom and what

00:16.920 --> 00:18.600
you need to do in the left part.

00:18.680 --> 00:22.600
We, uh, we I, I was in a windows.

00:22.600 --> 00:29.360
So basically select this Android and you're gonna see a button switch platform in the top right inside

00:29.520 --> 00:31.360
in this uh, build profiles tab.

00:31.360 --> 00:32.680
So just click on it.

00:32.680 --> 00:38.160
And if you're not able to select this Android then you need to install it first.

00:38.200 --> 00:40.520
Basically you need to add that module.

00:40.560 --> 00:43.640
To do that you need to open up Unity Hub.

00:43.640 --> 00:45.720
So basically open up Unity Hub.

00:45.880 --> 00:51.800
And then in the left part you can see projects install and all of the things, all of the things.

00:51.800 --> 00:59.920
So basically select this install and select the version that you were making your game inside that version.

01:00.160 --> 01:07.720
Then click on the settings icon in the right side you can see or the cog icon and then click on this

01:07.920 --> 01:09.160
add modules.

01:09.800 --> 01:12.960
Click Add Modules and you're going to see Android.

01:12.960 --> 01:17.680
So basically check that and then click on this install button in the bottom right.

01:17.680 --> 01:18.640
You can notice.

01:18.640 --> 01:25.800
So basically you need to select Android and make sure you select open JDK Android SDK and indicate tools

01:25.800 --> 01:26.640
as well.

01:26.760 --> 01:29.520
And after doing that basically selecting that.

01:29.560 --> 01:32.720
Then click on this install button in the bottom right.

01:32.720 --> 01:35.480
And after doing this you're gonna get that.

01:35.480 --> 01:42.600
So basically then just move over to top left file, then build profiles and then select this Android

01:42.600 --> 01:44.800
and then click on this switch platform.

01:45.000 --> 01:51.320
And once you are done you're gonna see active button right next to this Android as you can see.

01:51.320 --> 01:55.400
So I am already in this android as you can notice.

01:55.560 --> 02:03.040
And now we need to do some settings, uh, in order to check our game live with our mobile phone to

02:03.040 --> 02:03.600
do so.

02:03.640 --> 02:06.400
To do that in the top you can see player settings.

02:06.400 --> 02:10.400
So just click on that and then editor.

02:10.400 --> 02:15.610
Basically choose editor in this Project Settings tab in the left bar you can notice.

02:15.610 --> 02:17.530
So basically select this editor.

02:17.690 --> 02:19.130
Then go over to device.

02:19.130 --> 02:23.490
And as you can notice it says device and it says none.

02:23.490 --> 02:26.810
So basically select this any Android device.

02:26.810 --> 02:28.730
So make sure you just do that.

02:28.730 --> 02:33.130
So select device and then choose this and any Android device.

02:33.290 --> 02:40.170
And after doing that what you need to do you need to do some settings uh on your on your mobile phone.

02:40.770 --> 02:45.930
But before we do basically make sure, uh, let me show you one more time.

02:45.930 --> 02:48.970
So I'm going to cut this, all of these steps.

02:48.970 --> 02:54.090
So basically move over to top left file then build profiles in the bottom.

02:54.090 --> 02:57.730
And then you need to click on this player settings in the top.

02:58.090 --> 03:02.890
And after doing that in the left part you can see editor right over here.

03:02.890 --> 03:08.850
So select that and choose device to any Android device from none to any Android device.

03:08.850 --> 03:12.330
And after doing that make sure you just cut this step.

03:12.330 --> 03:19.650
Basically we have done the settings inside uh, in unity editor, and now we need to do some settings

03:19.650 --> 03:21.210
on our mobile phone.

03:21.250 --> 03:26.890
In order to check the game live in mobile devices while we're playing our game.

03:27.890 --> 03:33.810
So you need to plug your mobile phone with an USB to your laptop or PC.

03:33.850 --> 03:35.650
So you need to connect that.

03:35.650 --> 03:37.210
So make sure you just do that.

03:37.410 --> 03:44.930
And after doing we can just, uh, you can just move over to next lecture and I'm gonna show you something

03:44.930 --> 03:45.730
over here.

03:46.130 --> 03:53.290
So if we move over to Game View and then click on this game and then choose the simulator, we can notice

03:53.450 --> 03:57.130
our game just gonna look like with any Android devices.

03:57.130 --> 04:00.890
So as you can notice this is Apple iPod mini.

04:00.890 --> 04:04.570
So in the top you can see simulator tab or this game tab.

04:04.570 --> 04:11.890
So just click there and you're gonna see a button in the bottom cells say something like install additional

04:11.890 --> 04:12.450
devices.

04:12.450 --> 04:15.370
So just click on it and you're gonna see all of this.

04:15.370 --> 04:21.650
So I'm going to choose let's suppose we're gonna choose Apple iPhone 13 Pro Max.

04:21.850 --> 04:29.170
Let's this one as you can notice that the game just going to look like this in our Apple icon.

04:29.370 --> 04:32.650
Apple uh, Apple iPhone 13 Pro Max.

04:32.810 --> 04:35.610
And you can check with any other devices.

04:35.610 --> 04:39.290
Let's suppose I'm gonna check with, uh, Google Pixel four.

04:39.330 --> 04:44.890
As you can notice, the game just gonna look like this in our Google Pixel four.

04:45.210 --> 04:51.490
And we can just switch to, uh, Samsung as well Samsung Galaxy.

04:51.850 --> 04:54.090
So let's select this 5G phone.

04:54.330 --> 04:58.610
So it's gonna look like this in our Samsung Galaxy.

04:58.810 --> 05:00.850
So basically that is the thing.

05:00.850 --> 05:04.090
And we can choose any other devices as well.

05:04.730 --> 05:11.370
Let's suppose we're gonna choose Xiaomi Mi five as you can notice.

05:11.370 --> 05:19.770
So the this buttons are just getting resized as the size of our screen or mobile screen size as you

05:19.770 --> 05:20.450
can notice.

05:20.770 --> 05:24.850
So if it's not happening then what you need to do you need to make sure.

05:24.850 --> 05:26.850
So basically move over to hierarchy.

05:26.890 --> 05:28.170
Then select this canvas.

05:28.170 --> 05:34.820
Then go over to Inspector, score down to this canvas scaler and UI scale mode to choose this scale

05:34.820 --> 05:42.700
with screen size and put in the X or width 1920 and in the height or in the Y put 1080.

05:42.980 --> 05:44.220
So it's going to do that.

05:44.220 --> 05:48.300
But if your game in portrait mode then you can just write this value.

05:48.500 --> 05:52.580
And as you can see now, it's gonna fit all of these devices.

05:52.860 --> 05:56.820
And we can check with uh, this one as well.

05:57.020 --> 06:01.540
So basically we can see our game just gonna look like fine, fine.

06:01.540 --> 06:03.340
And it's pretty much good.

06:03.540 --> 06:07.420
Uh, to any Android devices, adjust this button.

06:07.420 --> 06:08.980
Just get resizing.

06:09.260 --> 06:14.380
And this icon just get resizing as the size of our screen size.

06:14.620 --> 06:16.180
So I hope you get the idea.

06:16.420 --> 06:20.900
And if you want to go back then click on this top left simulator tab.

06:21.180 --> 06:26.260
Uh, so just click on this simulator and then click on this game to go back.

06:26.300 --> 06:27.460
And that's it.

06:27.460 --> 06:35.780
And now we need to do some settings in our mobile devices in order to check our game in our mobile devices.
