A man was seen.
So we're going to create that.
So let's head over to this project tab then assets.
And then we're going to move over to this folder.
Let's right click there.
Or you can simply right click on this assets as well.
Then go to create in the top.
And then scroll down a bit says scene.
And then click on the scene in in order to create the scene.
But I'm going to do inside my scenes folder.
So let's head over there.
Let's right click there create.
And then we're going to click.
We're going to move over to this scene section.
And we're going to click on this scene.
And I'm going to name this scene to something like mano.
You can call this scene anything you like.
It's totally up to you.
And I'm gonna click on that.
I'm going to double click on it in order to move that or in order to move into that scene.
So basically what you have to do, you need to just double click on that scene in order to move it.
And let's suppose I want to move over to sample scene one more time.
Then I can just simply double click on it in order to move to that scene.
So I'm going to head over to my scene.
So let's double click there here in order to go there.
Get there.
And if we move over to hierarchy, we can see we have only main camera.
So I'm going to select my main camera in the hierarchy.
And let's press down F in order to focus on that object.
And we can see we only have our main camera.
And I want to change the background color with dark gray something like that.
So I'm going to select my main camera in the hierarchy.
Go over to camera component in the inspector then background.
And I'm gonna choose something like dark gray.
And this seems pretty much fine to me.
And what I want to do over here, I just want to drag the background.
So make sure you just made those things prefab.
So we already made prefab.
We do.
No.
We just drag it into this prefab folder, all of those things.
So I'm gonna head over to my prefabs folder and I can see I have the background prefab.
So what I'm going to do I'm going to select that background.
Let's drag it over to this hierarchy or into this in view as well.
So I'm going to drag it over to this background.
Uh sorry in this A hierarchy.
And what I want to do, I want to move this L in the left direction.
So I'm going to select my move tool from the scene view.
And I'm going to move this background to the left side.
Something like this.
And this seems pretty much cool to me.
And as you can see, basically it's totally up to you.
And if you just want to drag a up, you can do that as well by selecting this move tool in this scene
view.
And I what I want to do now we're going to have some UI.
So we need to create our canvas because we will have a play button.
We're going to have exit button as well as we're going to have about button.
So we need to create those button.
But before we do we need to make sure we basically have to create our canvas.
And into that canvas we need to place all of the UI elements.
We do know that.
So let's do that.
So we're going to move over to hierarchy.
Let's right click there or hit this plus icon.
Then go over to this UI and select this canvas in the bottom.
And now we're going to select our canvas, and we're going to press down F on our keyboard in order
to focus on that.
And we're going to move over to this Inspector tab then Canvas Color.
And from there choose UI scale mode to scale with screen size.
So the canvas is just gonna scale up or scale down in according to our screen size.
So in the x or width I'm going to put 1920, as I have done in my sample scene with our canvas.
So we're going to do the same thing as well over here and in the height y I'm going to put 1080.
So if your game in landscape mode then just put in the width something like 1920 and in the height 1080.
But if your game in portrait mode then you can just swipe these values.
It's basically totally up to you.
And now what we're going to do, we're going to create an empty game object.
Sorry, empty game, empty game object inside this canvas game object.
So let's select the canvas.
Let's right click there.
And let's create an empty game object.
So why have we created this game object underneath our canvas?
Because we just want to clear one everything clean.
So that's why we just created a empty game object first.
And I'm going to name this game object to something like menu.
So I'm going to select my game object in the underneath our canvas in the hierarchy.
And we're gonna I'm gonna name it something like menu.
And what we need to do, we need to make this menu game object as the size of our canvas.
So it's just gonna perfectly fit.
So we're going to select our menu and let's go to Inspector.
Then Recttransform click over here and we're gonna hold down alt.
And we're going to select this bottom right one.
And as soon as we have chosen we can see this menu game object.
Just get as the size of our canvas as you can see.
So make sure you just do that.
And now we are ready to create those button.
So I'm going to select my menu game object underneath my canvas.
Let's right click there.
Then go to UI and legacy in the bottom and then choose this button.
And I'm going to call this button to something like a play button.
We're going to have multiple buttons, something like play button, exit button, abort button and volume
button for multiple things.
And I'm going to call this button to something like play button.
So I'm going to call it play button.
So let's call it play button.
And we need to increase the size of this button.
So let's select the rake tool from the scene view.
And we're going to hold down alt on our keyboard to resize it from center.
As you can see.
And I'm going to change the sprite or this background sprite of this button.
So to change that we need to move over to this image component and inspector.
And we need to replace the source image.
And I do know I have uh, those uh, UI sprites as we have done in the, in inside our game over UI.
So we're going to do the same thing.
So I'm going to move over to my project tab, then assets and then sprites folder, and I will head
over to my UI folder.
And I can see the buttons over here.
So I'm going to click in this arrow.
And I have the button sprite over here, as you can see.
So I'm going to select that sprite.
Let's drag it over to this source image field in Inspector.
As soon as we drag it now it just changes it.
And the problem is that we're not able to see our text inside of this button.
So we need to increase a little bit.
So let's click over here and we're going to choose the text.
And let's go to Inspector.
And we're going to increase the font size something around 100.
And now I'm going to change the color of this font with something else in order to make it visible.
So I'm going to scroll down and let's click on this color fill.
I'm going to choose this color.
You can go with any color that you like.
Make sure it's visible to player.
Or we can see that it's basically totally up to you which color you want.
And you can also change this background sprite of this button as well.
And I'm going to choose Font Style to bold.
And I also want to change the font.
So I'm going to click over here in order to change the font.
Or you can simply move over to your assets.
And if you do have a fonts then you can select that and drag it over to this field.
So I have in my fonts folder.
So I'm going to move over to that.
And I'm going to select this font uh something like this one.
And I'm going to drag it over to this font slot.
As soon as we drag it we can see now it's just changed.
Changed just from the font.
Just get a change immediately.
And instead of saying button, I'm going to say something like play.
And I just want to increase my font size a little bit up.
So I'm gonna go with something like 150.
And now this seems pretty much cool.
And I'm going to select my play button, not the text.
So I'm going to select the parent one, basically the play button.
And we're going to select the move tool from here.
Rake tool from here not move tool.
Rake tool in this in view.
And we're going to hold down alt on our keyboard in order to resize it from center, as you can see.
So this seems pretty much fine.
And I want this button to be top something over here.
So what we're gonna do we're going to select our play button underneath our menu GameObject.
Go over to Inspector Recttransform.
Click over here and we're gonna hold down alt.
And we're gonna choose this top anchor.
And I'm going to move this a little bit down something like this much.
And if we try to scale down or scale up our screen size, we can see the button just getting resized
as the size of our screen size as well as the button just staying at that point, no matter how much
we scale down or scale up our screen size.
So basically that is a cool thing.
And we're gonna duplicate this button in order to make second button something like about button as
well as volume button.
And we're gonna have also the exit button.
So let's do that.
So I'm going to select my play button and let's press down Ctrl D in order to duplicate.
And I'm going to choose my rig tool from here.
And I will move down a little bit in the middle as well.
We can do.
But I'm gonna move it.
Something over here and this seems pretty much fine.
And I'm going to change this play button.
Instead of saying play button one, I'm going to say something like about button.
So I'm going to call it about button.
Let's call it about button.
And this seems pretty much fine.
And what we will do now we need to change the text inside of this button as well.
Instead of saying play we're going to say something like uh, about because this is just going to be
the about button.
So let's click over here and we're going to choose the text inside this button.
And let's the change the text.
Instead of saying play we're going to say something like about.
So let's say about and let's select this about button as well.
And we're going to press down control D to duplicate one more time.
And let's move it down somewhere over here.
And this will be our uh you can simply say the exit button.
I don't want the volume button.
So I'm going to ignore that.
So this will be the exit button.
So I'm going to call it something exit button.
Exit button.
And also we need to change the text inside of this button as well.
So let's choose the text inside of this button.
And I will say something like exit.
Uh, so this seems pretty much fine by now.
And make sure you just arrange this button, uh, perfectly, or make spaces between this button perfectly.
For this exit button, I'm going to choose my exit button underneath my game menu Game object, and
I will choose for this exit button, bottom anchor.
So I will move over to Recttransform.
Click over here and let's hold down alt.
And I'm going to choose this bottom anchor.
And I'm going to move it somewhere over here in the Y I will move to 75.
So let's move it to 75.
And I will choose the play button.
And I will move in the Y -275.
So it's just going to be perfect.
And I want this about button to be middle center.
So I will select my about button and we can just go over to Inspector Break Transform.
Click over here and hold down alt on your keyboard.
And for this button I'm going to choose this middle anchor.
So as soon as we have chosen now we can see this seems pretty much cool by now.
And the button.
Just arrange it perfectly and make sure you select your menu game object and make that one prefab.
So we're going to have the copy.
So we need to make don't need to make this button from scratch one by one.
So that's why we just created an empty parent game object first.
And then we just created this button inside of that game object.
So we just easily make easily can make it prefab.
So we don't need to work from scratch.
So I'm going to select my menu game object underneath my canvas.
And let's select that and drag it over to this prefabs folder in this assets folder in our project tab.
Now we just made it a prefab as you can see.
So now if I just click on this play button in the job and try to click on this play.
Exit or this abort button.
You will see this button will do nothing currently because we need to hook this button with some certain
function.
Something like if I just click on this play button, I just want to play our game.
And if I just click on this button, then I just want to make the about.
I just want to move over to about menu.
And if I just click on this exit button, then I just want to quit my application or I want to exit
my application.
So I will get out of play mode and we're getting some error.
So the error we can see if I select that, we can see the basically if we select all of this BG one,
BG two, and BG three and move over to this parallax if a script in Inspector.
So we can see still in this background we have parallax effect attached.
And we need to drag the cam over here.
So what you can simply do you can select all of this background underneath your backgrounds GameObject
in the hierarchy.
Then go over to Inspector and uncheck this parallax script so the parallax script will not attach to
this background.
So we're not going to get any error or what you can simply do.
You can select your main camera and then drag it over to this cam slot over here.
So error will be gone because we can see underneath our console tab a message screen pop up a error
basically.
And it's saying the variable cam parallax has not been assigned means this slot is empty, which we
can simply.
As we can see, that game field is totally empty.
So over there we need to drag the main camera reference.
So what we're going to do now we're going to select our main camera underneath our hierarchy.
Let's select that and drag it over to that slot.
Or you can simply select all of this background then uncheck this parallax script in the inspector.
Basically you just disabling.
So we're not going to get any error by now.
So if I just click on this play button and have a look.
You will see that, uh, we're not gonna get any error by now, but we're going to take a look on that.
So let's have a look on it, and we can see we don't have any error.
And you can just ignore this, uh, error in the console with saying, uh, call is not allowed when,
uh, transient, uh, artifacts are getting updated.
So you can just ignore that error and we can see.
So let's create the about menu as well.
So I'm going to get out of play mode.
So in order to create about menu what we can simply do we can select our menu game object underneath
our canvas game object.
Then we can simply press down Ctrl D in order to duplicate.
And then we can change around something.
But if you do and then select your main menu, then go over to overrides and then click on Apply All.
So the changes here you made inside this menu game object, it will be saved into the duplicate as well.
So instead of duplicating Manu schema object over here, we're going to duplicate in that prefab mode.
Basically what we have to do we need to move over to our project tab, then assets and then prefabs
basically where we drag the menu GameObject in order to in order to make it prefab.
So we can see we have the menu game object inside this prefab folder.
So make sure you just make it prefab first.
So I'm going to select my menu GameObject in this prefab mode inside our prefabs folder.
So I'm going to select that and let's press Ctrl D in order to duplicate.
And we can see we have one more menu and it says mano one.
So I'm going to name it to something else.
So let's right click there.
Basically right click on this Manu one game object and the prefabs folder.
And we're going to rename it to something like about menu.
So I'm going to call it about menu.
And now this is fine.
So what we can simply do I'm going to select my menu game object underneath my canvas.
And I'm going to disable basically uncheck in Inspector in order to disable it, or with just setting
active to false.
And what I'm going to do now, I'm going to select my about menu from that prefab folder, and let's
drag it over to this canvas GameObject in the hierarchy.
As soon as we drag it we can see we have play button, about button and the exit button.
So in about menu we're not gonna have this play button as well as this about button.
Instead we're gonna have a back button.
So if I just click on that back then we just want to load up or want to go back into the mano a mano
UI.
So what I'm gonna do, I'm going to select my display button as well as this button, and I'm gonna
remove that.
So let's go over to about menu and we're going to select our play button as well as about button.
And I'm going to delete those button.
And let's choose the exit button.
And instead of saying exit button this is gonna be our back button.
So I will rename it to something like back button.
So let's call it back button.
And also we need to change the text inside of this button instead of saying exit.
We need to say something like pack.
So let's select over here and we're going to choose our text.
And let's say instead of exit we're going to say something like pack.
Now this seems pretty much cool, but we want to have a text saying like this is our about button and
you can say anything you like.
So what I'm going to do I'm going to select my about menu.
Let's right click on it.
Then go to UI and then legacy in the bottom.
And then choose this text.
And we will make the text a text or just want to stretch around our canvas.
So we will select our text.
Let's go to Inspector Recttransform.
Click over here and we will hold down alt.
And we're going to select this bottom right one.
And we will drag it up because we don't want to cover uh this back button.
So I will move this a little bit up or else you will get some error.
Basically you will not be able to click on this back button.
So that's why.
So I'm going to select my text game object.
And let's select the wreck right tool from here.
And I'm going to move it up a little bit.
I just don't want to cover this back button.
So make sure you just do that.
And this will be our about text and I will I'm just going to move it a little bit down.
And instead of saying text I'm going to say something like about text.
So let's call it about text.
And also we need to increase the size, basically the font size of this text in order to make it visible.
So let's go to text component then font size.
And I'm going to make it something around 100.
And I just want to choose alignment both of this center.
And I'm going to change the color with something else.
You can choose choose any color that you like.
It's basically totally up to you.
Uh, I think green seems pretty fine to me.
Or we can, uh, just change it to yellow as well.
Uh, as well.
I just want to change the font.
So I'm going to click over here in this font fill, and I will choose this monogram.
And I will increase the font size something around 150.
And let's choose the font style to bold.
And instead of saying new text, I'm going to say something like about or I am, I will say something
like, uh, this is uh, this is Udemy.
Uh, this is unity six, course unity six, course six.
Course with C sharp.
With C sharp.
It's totally up to you what?
You just want to, uh, want to put inside this text.
It's totally up to you.
Uh, it doesn't matter.
Uh, I hope you get the idea that how you can do it.
And this seems pretty much fine by now.
So let's select the parent game object.
So in our case about menu we will choose let's go to Inspector then overrides.
And let's click on this apply all.
So we just clicked on Apply all.
So it's not going to be changed in this Mario game object because that menu is totally separate game
object.
So that's why we need to move over to this prefab mode.
And then.
There you need to just duplicate if you just uh, moving over to overrides and then click on clicking
on apply all uh, it will change the duplicate as well.
So that's why you, you need to duplicate those things inside prefab new prefab mode.
But you can ignore for this coin heart and this explosion because those are just gonna be same.
So that is the reason.
And this seems pretty much cool by now.
And I'm gonna select or you can just put anything like that and we forgot to I guess this is our back
button and we just name it to check.
And this seems pretty much cool by now.
And we can select our panel as well.
In underneath our canvas we can move over to uh overrides.
And then we, we need to click on this apply all.
So the changes we made inside this game object, it will be saved into this prefab as well.
And I don't want this about managed to be active by default.
So I'm going to select my about menu underneath my canvas GameObject in hierarchy.
And let's go to Inspector and uncheck.
Basically you just disabling and I want this menu to be activate once our player open up the game.
So I'm going to select my menu GameObject underneath canvas.
And let's go to Inspector and check it.
So basically you just enabling it.
Now this seems pretty much cool.
And let's press down Ctrl S in order to save our project.
And let's suppose you just want to go back in sample scene.
Then you can just move over to this project tab, then assets and then since folder or where you have
the sample scene.
So I have the sample scene in my sample this sample scene over here.
So I'm going to double click on that in order to go back.
And I am I can double click on this menu as well in order to move over to this mano scene.
And let's suppose you just change it anything like if I just drag this main camera down in this hierarchy.
A hierarchy.
And if I just want to move over to the samples in pi now so we can simply double click on it in order
to go back to that sample scene.
And over here you can see a message.
Do you want to save the changes you've made in this sense?
Menu.
So whatever changes you, uh, you made in this scene, if you just want to save it, then you can just
click on that save button.
And then after that you will move over to that sample scene.
And if you don't want to save, then you can just click on this stone shape.
But I want to save whatever I have done so far in my scene, and I just want to save that.
So that's why I'm gonna click on this save.
And as soon as we click on that save button, we just move it over to this sample scene and the changes
we made inside that menu scene.
It's now saved.
So basically that is the thing.
Uh, I'm gonna move over to my mano scene once again.
So I'm going to double click on this mano scene in order to move over to that mano scene.