1
00:00:00,000 --> 00:00:01,000
Hello, guys.

2
00:00:01,000 --> 00:00:07,000
In this video, I want to show you another useful set in how you can control device, how you can make

3
00:00:07,000 --> 00:00:09,000
your development for mobile phone easier.

4
00:00:09,000 --> 00:00:12,000
You need to go to window and find a special package here.

5
00:00:13,000 --> 00:00:14,000
Let me find it over here.

6
00:00:14,000 --> 00:00:16,000
General device simulator.

7
00:00:17,000 --> 00:00:19,000
You click this, you can drag it somewhere.

8
00:00:19,000 --> 00:00:27,000
For example, I'll drag it here and you can rotate device and you can choose from the list of devices.

9
00:00:27,000 --> 00:00:31,000
It doesn't have all of them that are in the world, but you can find something similar.

10
00:00:31,000 --> 00:00:39,000
For example, I'm using some song as 20 and I know it's pretty much similar with a as ten, so I'll

11
00:00:39,000 --> 00:00:39,000
use this one.

12
00:00:39,000 --> 00:00:45,000
But in your case you can use different device and I can see it looks pretty much same as you've seen

13
00:00:45,000 --> 00:00:46,000
on the screen.

14
00:00:46,000 --> 00:00:48,000
Let me go to play mode and show you.

15
00:00:48,000 --> 00:00:52,000
I'm recording my phone right now so I can show it to you.

16
00:00:52,000 --> 00:00:57,000
Yeah, this is the screen on the device and this is how it looks in the simulator.

17
00:00:57,000 --> 00:00:59,000
Pretty much the same.

18
00:00:59,000 --> 00:01:05,000
And I can switch off my device for now and just do it in the unity and then send the build to my phone

19
00:01:05,000 --> 00:01:06,000
and see how does it work.

20
00:01:06,000 --> 00:01:12,000
So I'll disconnect my device and let's modify our game here.

21
00:01:12,000 --> 00:01:22,000
Now, in Unity, I'm going to change aspect to landscape with a resolution I want and 922 1080 This

22
00:01:22,000 --> 00:01:24,000
is better now we need to.

23
00:01:25,000 --> 00:01:28,000
Now we need to work on the UI here.

24
00:01:28,000 --> 00:01:32,000
In general it looks pretty much okay, but still need some fixes.

25
00:01:32,000 --> 00:01:35,000
Let's switch on main menu and see how does it look.

26
00:01:35,000 --> 00:01:40,000
I'm going to switch off in UI so they are a bit higher there than there should be.

27
00:01:40,000 --> 00:01:44,000
First we can go to additional shader channel and switch this to none.

28
00:01:44,000 --> 00:01:46,000
You can see it says shader channel normal.

29
00:01:46,000 --> 00:01:47,000
La la la la la.

30
00:01:47,000 --> 00:01:51,000
Used when lighting with overlay canvas does not support slightly.

31
00:01:51,000 --> 00:01:54,000
These channels are not needed, so basically just nothing.

32
00:01:54,000 --> 00:01:55,000
And it's okay.

33
00:01:55,000 --> 00:02:00,000
So what we can do here is go to main menu and just just this button by a bit.

34
00:02:00,000 --> 00:02:03,000
Let me find my shop button.

35
00:02:04,000 --> 00:02:09,000
Mute button and settings button and I can place them just a bit lower.

36
00:02:12,000 --> 00:02:13,000
So this is how they should look.

37
00:02:13,000 --> 00:02:18,000
But I'll make sure on a build also, I can do the same for info bar.

38
00:02:18,000 --> 00:02:21,000
Just place it a bit higher and it should be fine.

39
00:02:21,000 --> 00:02:28,000
Or what you can do is to click canvas and instead of scale with a screen size you can do.

40
00:02:30,000 --> 00:02:32,000
Constant pixel size.

41
00:02:32,000 --> 00:02:33,000
It's going to look like this.

42
00:02:33,000 --> 00:02:34,000
It's a bit weird.

43
00:02:34,000 --> 00:02:36,000
You need to do some adjustments here.

44
00:02:36,000 --> 00:02:39,000
You can change scale factor, for example.

45
00:02:39,000 --> 00:02:42,000
Let's try 1.4.

46
00:02:42,000 --> 00:02:44,000
Then place them where you like.

47
00:02:44,000 --> 00:02:46,000
This one, by the way, looks okay.

48
00:02:46,000 --> 00:02:48,000
But again, it's all up to you.

49
00:02:48,000 --> 00:02:51,000
I'm just showing you different options.

50
00:02:51,000 --> 00:02:54,000
And you choose the one that is more convenient for you.

51
00:02:54,000 --> 00:02:56,000
I think we should work with the scale.

52
00:02:56,000 --> 00:02:57,000
With the screen size.

53
00:02:57,000 --> 00:02:58,000
It's more consistent.

54
00:02:58,000 --> 00:02:59,000
So this looks okay.

55
00:02:59,000 --> 00:03:03,000
Now let's go and check in game UI and other UI settings.

56
00:03:03,000 --> 00:03:04,000
Looks okay.

57
00:03:08,000 --> 00:03:09,000
Paul's UI.

58
00:03:09,000 --> 00:03:11,000
So button is a bit off.

59
00:03:12,000 --> 00:03:15,000
We can move it down just by a bit.

60
00:03:17,000 --> 00:03:21,000
It's still going to stick to the corner, but it's going to be lower.

61
00:03:21,000 --> 00:03:25,000
And you can see the dark field on the left and on the right is a bit off.

62
00:03:25,000 --> 00:03:28,000
So what we can do is to increase the dark screen.

63
00:03:30,000 --> 00:03:31,000
To the left and to the right.

64
00:03:31,000 --> 00:03:32,000
Yeah.

65
00:03:33,000 --> 00:03:34,000
And let's see.

66
00:03:34,000 --> 00:03:36,000
I think it's okay.

67
00:03:36,000 --> 00:03:37,000
Do you think it's okay?

68
00:03:37,000 --> 00:03:38,000
Maybe we need to make it a bit.

69
00:03:38,000 --> 00:03:39,000
Uh.

70
00:03:40,000 --> 00:03:42,000
Smaller.

71
00:03:42,000 --> 00:03:44,000
And let's find in bar.

72
00:03:45,000 --> 00:03:47,000
It's a bit difficult to navigate like that.

73
00:03:48,000 --> 00:03:52,000
I want to make sure on build so I'll keep it like this for now and I'll see.

74
00:03:52,000 --> 00:03:53,000
End game UI.

75
00:03:55,000 --> 00:03:56,000
So.

76
00:03:56,000 --> 00:03:58,000
So it's okay.

77
00:03:58,000 --> 00:04:00,000
Now let's see in UI.

78
00:04:03,000 --> 00:04:04,000
Yeah.

79
00:04:04,000 --> 00:04:05,000
Buttons are off.

80
00:04:10,000 --> 00:04:11,000
Pause button and mute button.

81
00:04:13,000 --> 00:04:16,000
Let's place it lower in four bar.

82
00:04:16,000 --> 00:04:17,000
Just higher.

83
00:04:18,000 --> 00:04:20,000
And controls button and control buttons.

84
00:04:20,000 --> 00:04:22,000
Well, they're pretty big, so it's fine.

85
00:04:22,000 --> 00:04:23,000
You won't miss them.

86
00:04:24,000 --> 00:04:26,000
Now, let's see the build on my phone.

87
00:04:27,000 --> 00:04:28,000
Going to record the screen.

88
00:04:30,000 --> 00:04:31,000
And build and run.

89
00:04:37,000 --> 00:04:39,000
And this looks much better, just like what we need.

90
00:04:45,000 --> 00:04:47,000
There are some things with the UI elements.

91
00:04:47,000 --> 00:04:49,000
We're going to fix it later.

92
00:04:49,000 --> 00:04:51,000
Just let's see the buttons.

93
00:04:51,000 --> 00:04:52,000
It's okay.

94
00:04:52,000 --> 00:04:54,000
This one is working.

95
00:04:54,000 --> 00:04:55,000
Main menu is working.

96
00:04:56,000 --> 00:04:57,000
Pause and pause.

97
00:04:58,000 --> 00:04:58,000
It's cool.

98
00:04:58,000 --> 00:05:00,000
Oh, let's see the shop.

99
00:05:00,000 --> 00:05:03,000
So shop is almost fine.

100
00:05:03,000 --> 00:05:06,000
The only problem is these borders from the asset.

101
00:05:06,000 --> 00:05:08,000
We're going to fix it.

102
00:05:08,000 --> 00:05:10,000
Well, big fix is pretty simple.

103
00:05:10,000 --> 00:05:16,000
We need to go to canvas and find this reference pixel per unit and set it back to 100.

104
00:05:16,000 --> 00:05:19,000
And I guess yours was 100.

105
00:05:19,000 --> 00:05:22,000
Just, I did change something when I was playing around.

106
00:05:22,000 --> 00:05:23,000
Yeah.

107
00:05:23,000 --> 00:05:25,000
So this is the settings.

108
00:05:25,000 --> 00:05:28,000
This can be set to nothing, and that's okay.

109
00:05:29,000 --> 00:05:30,000
Let's see it.

110
00:05:31,000 --> 00:05:33,000
Simulator is fine.

111
00:05:33,000 --> 00:05:34,000
Shop.

112
00:05:34,000 --> 00:05:35,000
It's all good.

113
00:05:41,000 --> 00:05:44,000
So basically this is like, Yeah.

114
00:05:48,000 --> 00:05:52,000
And you can see that the simulator is basically same as my phone.

115
00:05:52,000 --> 00:05:57,000
I'll play a recording of my phone right now, and you can see there is no difference.

116
00:05:58,000 --> 00:05:59,000
Wait a second.

117
00:06:07,000 --> 00:06:07,000
Yeah.

118
00:06:07,000 --> 00:06:09,000
So this is a recording from my phone.

119
00:06:09,000 --> 00:06:11,000
This is what you can see in unity.

120
00:06:11,000 --> 00:06:13,000
They're basically the same.

121
00:06:14,000 --> 00:06:19,000
So as I said before, you can do some testing here and then just transfer a bill to your phone to make

122
00:06:19,000 --> 00:06:19,000
sure.

123
00:06:19,000 --> 00:06:20,000
Is it fine or not?

124
00:06:20,000 --> 00:06:21,000
Well, pretty good.

125
00:06:21,000 --> 00:06:23,000
I'll switch off play mode.

126
00:06:23,000 --> 00:06:24,000
I think this is pretty much okay.

127
00:06:24,000 --> 00:06:28,000
Slight issue was PHP on my phone.

128
00:06:28,000 --> 00:06:33,000
When I run, I can see the images are a bit blurry and it's nothing wrong with the code.

129
00:06:33,000 --> 00:06:38,000
It's just something about frame rate because frame rate is not updated as fast.

130
00:06:38,000 --> 00:06:42,000
It feels like they're blurry but in reality is just low for us.

131
00:06:42,000 --> 00:06:45,000
So what we can do is to go to game manager.

132
00:06:45,000 --> 00:06:46,000
Game manager.

133
00:06:46,000 --> 00:06:54,000
We can create start function and in the start function we can do quality settings, dot, we sync count

134
00:06:54,000 --> 00:06:58,000
equals to zero, and then we can set frame rate application.

135
00:07:00,000 --> 00:07:08,000
Dot target frame rate equals to and it's better to set some high value For example 120 will do save

136
00:07:08,000 --> 00:07:13,000
it and next time you build your game on your phone is going to be sharp and crispy and nice.

137
00:07:13,000 --> 00:07:13,000
All right.

138
00:07:13,000 --> 00:07:18,000
Now let's go to the next section and work on polish of the game and then we can finalize it with the

139
00:07:18,000 --> 00:07:21,000
post in it on the website or play market.

140
00:07:21,000 --> 00:07:22,000
See you there.

