Hello, guys.
In this video, I want to show you another useful set in how you can control device, how you can make
your development for mobile phone easier.
You need to go to window and find a special package here.
Let me find it over here.
General device simulator.
You click this, you can drag it somewhere.
For example, I'll drag it here and you can rotate device and you can choose from the list of devices.
It doesn't have all of them that are in the world, but you can find something similar.
For example, I'm using some song as 20 and I know it's pretty much similar with a as ten, so I'll
use this one.
But in your case you can use different device and I can see it looks pretty much same as you've seen
on the screen.
Let me go to play mode and show you.
I'm recording my phone right now so I can show it to you.
Yeah, this is the screen on the device and this is how it looks in the simulator.
Pretty much the same.
And I can switch off my device for now and just do it in the unity and then send the build to my phone
and see how does it work.
So I'll disconnect my device and let's modify our game here.
Now, in Unity, I'm going to change aspect to landscape with a resolution I want and 922 1080 This
is better now we need to.
Now we need to work on the UI here.
In general it looks pretty much okay, but still need some fixes.
Let's switch on main menu and see how does it look.
I'm going to switch off in UI so they are a bit higher there than there should be.
First we can go to additional shader channel and switch this to none.
You can see it says shader channel normal.
La la la la la.
Used when lighting with overlay canvas does not support slightly.
These channels are not needed, so basically just nothing.
And it's okay.
So what we can do here is go to main menu and just just this button by a bit.
Let me find my shop button.
Mute button and settings button and I can place them just a bit lower.
So this is how they should look.
But I'll make sure on a build also, I can do the same for info bar.
Just place it a bit higher and it should be fine.
Or what you can do is to click canvas and instead of scale with a screen size you can do.
Constant pixel size.
It's going to look like this.
It's a bit weird.
You need to do some adjustments here.
You can change scale factor, for example.
Let's try 1.4.
Then place them where you like.
This one, by the way, looks okay.
But again, it's all up to you.
I'm just showing you different options.
And you choose the one that is more convenient for you.
I think we should work with the scale.
With the screen size.
It's more consistent.
So this looks okay.
Now let's go and check in game UI and other UI settings.
Looks okay.
Paul's UI.
So button is a bit off.
We can move it down just by a bit.
It's still going to stick to the corner, but it's going to be lower.
And you can see the dark field on the left and on the right is a bit off.
So what we can do is to increase the dark screen.
To the left and to the right.
Yeah.
And let's see.
I think it's okay.
Do you think it's okay?
Maybe we need to make it a bit.
Uh.
Smaller.
And let's find in bar.
It's a bit difficult to navigate like that.
I want to make sure on build so I'll keep it like this for now and I'll see.
End game UI.
So.
So it's okay.
Now let's see in UI.
Yeah.
Buttons are off.
Pause button and mute button.
Let's place it lower in four bar.
Just higher.
And controls button and control buttons.
Well, they're pretty big, so it's fine.
You won't miss them.
Now, let's see the build on my phone.
Going to record the screen.
And build and run.
And this looks much better, just like what we need.
There are some things with the UI elements.
We're going to fix it later.
Just let's see the buttons.
It's okay.
This one is working.
Main menu is working.
Pause and pause.
It's cool.
Oh, let's see the shop.
So shop is almost fine.
The only problem is these borders from the asset.
We're going to fix it.
Well, big fix is pretty simple.
We need to go to canvas and find this reference pixel per unit and set it back to 100.
And I guess yours was 100.
Just, I did change something when I was playing around.
Yeah.
So this is the settings.
This can be set to nothing, and that's okay.
Let's see it.
Simulator is fine.
Shop.
It's all good.
So basically this is like, Yeah.
And you can see that the simulator is basically same as my phone.
I'll play a recording of my phone right now, and you can see there is no difference.
Wait a second.
Yeah.
So this is a recording from my phone.
This is what you can see in unity.
They're basically the same.
So as I said before, you can do some testing here and then just transfer a bill to your phone to make
sure.
Is it fine or not?
Well, pretty good.
I'll switch off play mode.
I think this is pretty much okay.
Slight issue was PHP on my phone.
When I run, I can see the images are a bit blurry and it's nothing wrong with the code.
It's just something about frame rate because frame rate is not updated as fast.
It feels like they're blurry but in reality is just low for us.
So what we can do is to go to game manager.
Game manager.
We can create start function and in the start function we can do quality settings, dot, we sync count
equals to zero, and then we can set frame rate application.
Dot target frame rate equals to and it's better to set some high value For example 120 will do save
it and next time you build your game on your phone is going to be sharp and crispy and nice.
All right.
Now let's go to the next section and work on polish of the game and then we can finalize it with the
post in it on the website or play market.
See you there.