1
00:00:00,000 --> 00:00:00,000
Hello, guys.

2
00:00:00,000 --> 00:00:02,000
So this is the interesting part.

3
00:00:02,000 --> 00:00:04,000
We're going to make a build for mobile phone.

4
00:00:04,000 --> 00:00:09,000
First of all, I want to talk about iOS because there is not really much to talk about.

5
00:00:09,000 --> 00:00:14,000
If you make a build, it's going to look same as an on Android, basically the same.

6
00:00:14,000 --> 00:00:19,000
The only difference is you cannot make a build for iOS if you don't have a MacBook.

7
00:00:20,000 --> 00:00:22,000
And that is the problem here.

8
00:00:22,000 --> 00:00:26,000
Because I don't have a MacBook, I cannot show you how to make it on a MacBook.

9
00:00:26,000 --> 00:00:28,000
But luckily for us there is a solution.

10
00:00:28,000 --> 00:00:35,000
You can go to YouTube and simply type Unity, Mac, build iOS or something like that.

11
00:00:35,000 --> 00:00:40,000
There are bunch of videos that explains pretty well what you need to do, and I watch some of them.

12
00:00:40,000 --> 00:00:42,000
As you can see, Timeline is here.

13
00:00:42,000 --> 00:00:46,000
I watch some of them, they explain it pretty well and it's really not difficult task.

14
00:00:46,000 --> 00:00:51,000
So just you can see even 10 minutes will be enough for you to understand how to do that.

15
00:00:51,000 --> 00:00:54,000
Just I don't have a MacBook, so I cannot really do anything.

16
00:00:54,000 --> 00:00:56,000
I'm sorry about that.

17
00:00:56,000 --> 00:00:57,000
I hope you'll forgive me.

18
00:00:57,000 --> 00:00:58,000
Let's move on.

19
00:00:58,000 --> 00:01:00,000
Let's make a build for Android.

20
00:01:00,000 --> 00:01:00,000
Oh yeah.

21
00:01:00,000 --> 00:01:03,000
And there are a couple of solutions that comes to my mind.

22
00:01:03,000 --> 00:01:06,000
First, like you can ask your friend for MacBook or anything.

23
00:01:06,000 --> 00:01:10,000
Just in my environment, there is no one with the MacBook, honestly.

24
00:01:10,000 --> 00:01:10,000
Yeah.

25
00:01:10,000 --> 00:01:15,000
So let's click Android and what do you need to do here is to do switch platform and.

26
00:01:16,000 --> 00:01:19,000
That was pretty fast for me because I did it before.

27
00:01:19,000 --> 00:01:21,000
But for you, it might take some time.

28
00:01:21,000 --> 00:01:24,000
The next step would be is to go player settings.

29
00:01:25,000 --> 00:01:29,000
We're going to talk a bit more about these settings when we're going to publish Game on the Play Market.

30
00:01:29,000 --> 00:01:34,000
One of the most important here we need to think about is in the resolution and presentation.

31
00:01:34,000 --> 00:01:36,000
And I'm talking about.

32
00:01:37,000 --> 00:01:38,000
Outer rotation here.

33
00:01:38,000 --> 00:01:42,000
So orientation is how you need to hold your phone to play the game.

34
00:01:42,000 --> 00:01:48,000
Our game is horizontal, but you cannot just choose landscape right or landscape left because it will

35
00:01:48,000 --> 00:01:51,000
lock your phone on one landscape and you cannot turn phone around.

36
00:01:51,000 --> 00:01:56,000
But what you can do is to click out of rotation and then choose allowed.

37
00:01:57,000 --> 00:02:01,000
Orientations in our case is going to be both of them left and right.

38
00:02:01,000 --> 00:02:03,000
There is also aspect ratio mode.

39
00:02:03,000 --> 00:02:06,000
You can change it to custom and set 16 to 9.

40
00:02:06,000 --> 00:02:14,000
For example, make sure you disable resolution scaling mode, otherwise it will bring geographic quality

41
00:02:14,000 --> 00:02:19,000
to the worse, worse, worse quality.

42
00:02:19,000 --> 00:02:19,000
Yeah.

43
00:02:19,000 --> 00:02:27,000
And talking about quality, let's go over here to quality and make sure we change default quality for

44
00:02:27,000 --> 00:02:29,000
Android from medium or low.

45
00:02:29,000 --> 00:02:30,000
What it was for you.

46
00:02:30,000 --> 00:02:32,000
You can make high, very high.

47
00:02:32,000 --> 00:02:33,000
Ultra high will be enough.

48
00:02:33,000 --> 00:02:36,000
Pretty much enough for our task here.

49
00:02:38,000 --> 00:02:38,000
Yeah.

50
00:02:38,000 --> 00:02:40,000
Let's go back to player settings here.

51
00:02:40,000 --> 00:02:45,000
There are some other settings that we're going to talk about later when we make in a build, I promise

52
00:02:45,000 --> 00:02:45,000
you.

53
00:02:45,000 --> 00:02:47,000
So don't worry about them now.

54
00:02:47,000 --> 00:02:49,000
Now we just need to do some testing.

55
00:02:49,000 --> 00:02:52,000
And I want to tell you how you can test a game on your phone.

56
00:02:52,000 --> 00:02:57,000
First of all, most simple option is to click build.

57
00:02:57,000 --> 00:03:01,000
You need to find a place for it, and you'll create an APK file.

58
00:03:01,000 --> 00:03:02,000
You can see I have mine.

59
00:03:02,000 --> 00:03:04,000
Let me rename this.

60
00:03:04,000 --> 00:03:10,000
I'll delete this one and I'll rename this one to something like Parkour Runner.

61
00:03:11,000 --> 00:03:12,000
It will take some time.

62
00:03:12,000 --> 00:03:18,000
And once you have a build, you can transfer this file to your phone with a wire and play the game.

63
00:03:19,000 --> 00:03:20,000
And play the game.

64
00:03:20,000 --> 00:03:24,000
But what if we need to check this and that all the time for your phone?

65
00:03:24,000 --> 00:03:27,000
There are some changes you want to do and you want to double check.

66
00:03:27,000 --> 00:03:31,000
It's really annoying to transfer your game through the cable all the time.

67
00:03:31,000 --> 00:03:33,000
So there are a couple of options.

68
00:03:33,000 --> 00:03:36,000
First, what you need to do is to go to play market.

69
00:03:38,000 --> 00:03:40,000
Google Play Market.

70
00:03:42,000 --> 00:03:48,000
And you need to find application that is called Unity Remote five.

71
00:03:49,000 --> 00:03:52,000
This is the one you need to install this application.

72
00:03:53,000 --> 00:03:56,000
You can see I have it on my device already.

73
00:03:56,000 --> 00:04:00,000
And after that you need to switch on debug mode on your phone.

74
00:04:00,000 --> 00:04:07,000
Obviously there are so many phones in the world I cannot show you instructions for every phone, but

75
00:04:07,000 --> 00:04:11,000
all we need to do is to again, go to Google, type the model of your phone.

76
00:04:11,000 --> 00:04:15,000
Mine is Samsung SE 21, for example.

77
00:04:15,000 --> 00:04:16,000
Debug mode.

78
00:04:18,000 --> 00:04:20,000
And there are some instructions how you can do it.

79
00:04:20,000 --> 00:04:22,000
Pretty simple stuff.

80
00:04:22,000 --> 00:04:25,000
I will show you how I did it on my phone.

81
00:04:25,000 --> 00:04:32,000
You just needed to go to settings, find the amount, the phone click multiple times on a certain place

82
00:04:32,000 --> 00:04:36,000
in the list and developer option was switched on.

83
00:04:36,000 --> 00:04:38,000
Then I just needed to switch on debug mode.

84
00:04:38,000 --> 00:04:39,000
Pretty simple.

85
00:04:40,000 --> 00:04:43,000
Once you have that, you can go back to unity.

86
00:04:43,000 --> 00:04:46,000
You connect via to your phone and to your laptop.

87
00:04:46,000 --> 00:04:47,000
You connect them together.

88
00:04:48,000 --> 00:04:50,000
And well, let me do it by the second.

89
00:04:50,000 --> 00:04:51,000
Or is my phone.

90
00:04:51,000 --> 00:04:52,000
Found it.

91
00:04:52,000 --> 00:04:54,000
I want to record this so you can see it.

92
00:04:55,000 --> 00:04:56,000
Give me a second.

93
00:04:56,000 --> 00:04:58,000
I'll place a video on the screen.

94
00:04:59,000 --> 00:05:07,000
So you can see my unity remote is on and after that I can do refresh, find my device over here.

95
00:05:07,000 --> 00:05:09,000
Or you can choose default device.

96
00:05:09,000 --> 00:05:09,000
It's fine.

97
00:05:09,000 --> 00:05:10,000
It's going to work.

98
00:05:10,000 --> 00:05:12,000
Then I'm going to click, build and run.

99
00:05:12,000 --> 00:05:19,000
I still need to save an APK file, but I don't need to transfer it every time, which is much better.

100
00:05:19,000 --> 00:05:20,000
Right?

101
00:05:25,000 --> 00:05:27,000
So we can see it's a bit blurry.

102
00:05:27,000 --> 00:05:30,000
We're going to fix that with the frame rate settings.

103
00:05:30,000 --> 00:05:31,000
It's fine.

104
00:05:31,000 --> 00:05:32,000
Don't worry about that.

105
00:05:32,000 --> 00:05:34,000
And buttons are working.

106
00:05:34,000 --> 00:05:35,000
That is good.

107
00:05:35,000 --> 00:05:36,000
Good enough.

108
00:05:37,000 --> 00:05:38,000
And we need to fix this UI.

109
00:05:38,000 --> 00:05:40,000
We're also going to take care of that later.

110
00:05:40,000 --> 00:05:44,000
I'm going to show you how to set UI for different devices.

111
00:05:46,000 --> 00:05:48,000
But in general, everything is good.

112
00:05:48,000 --> 00:05:49,000
I like it.

113
00:05:49,000 --> 00:05:56,000
Okay, Now let me show you another way to debug your game, which is pretty useful as well.

114
00:05:56,000 --> 00:05:59,000
You can do it without making a build every time.

115
00:05:59,000 --> 00:06:03,000
What you need to do is go to edit project settings.

116
00:06:03,000 --> 00:06:09,000
You need to find editor and here under devices you can choose any Android device.

117
00:06:10,000 --> 00:06:15,000
After that you can close the settings and whenever you hit the play mode and whenever you hit play mode

118
00:06:15,000 --> 00:06:20,000
with your phone connected and with Switched on Unity remote then.

119
00:06:28,000 --> 00:06:34,000
You can see game is playing on my phone as well, which is pretty convenient, right?

120
00:06:34,000 --> 00:06:38,000
So I can do some slight changes and then try again.

121
00:06:38,000 --> 00:06:39,000
Exit play mode.

122
00:06:41,000 --> 00:06:42,000
And their play mode.

123
00:06:46,000 --> 00:06:47,000
Pretty good.

124
00:06:50,000 --> 00:06:52,000
I can see my game at four screens right now.

125
00:06:53,000 --> 00:06:53,000
All right.

