Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
Now, the big question is what happens when it's game over?
So we actually need to be able to return to a main menu, but we've not created the main menu yet.
So let's actually do that in this video.
Just make sure that you're saving this seat.
We're going to go to file new scene, basic built in.
Just create this, OK?
Don't need to directional like select delete that main camera.
We're going to change Claire Flux to solid color and we're just going to give it a solid black background.
OK.
And.
Yeah, clipping planes not necessary to the far distance of a thousand, you can probably just set this
to like maybe 10 perfectly fine and and forward rendering parts.
OK, don't need occlusion culling, don't need HDR.
We can switch that off.
Don't need NSA.
OK, but we don't even need an audio listener on this one.
So I can write little more.
But it's not going to be any audio on this.
What we do need is a canvas, the UI canvas.
And now I do want to make sure that they scale with screen size and that the resolution sets 12, 18
by 720.
OK, so 12, 18 by seven, 20.
And I'm going to match the height of the mobile screen as opposed to the width.
Yeah.
Everything else is good.
OK.
So that simulator, so on the canvas and then the right click through UI and the new image in the mobile
game resources.
We've got a main menu image that looks just like this onto the source image and choose native size.
OK.
It doesn't need to be a rakas targets, only just a simple image.
And and I'm just going to drag that a little bit.
OK, so in fact, I call this Biji image,
and then we do need a button, so right click UI and button this down.
And just over to the left a little bit.
So this one is going to be our play button.
So let's just so I play here.
And in terms of this button, I might actually just leave that way.
That's perfectly fine.
OK, if you want to customize that, obviously you can do.
Make sure you customize these colors.
If you customize this one, it would be overwritten by this color unless you change the transition to
NUND.
And it will just become a static one color button that doesn't interact when you press it.
But you can still do the on click.
OK, so I'll call this play button.
Then when a duplicate that control the this one over on the X.
I love this one as a quit button so that you can quit going back to your mobile.
Uh oh, wait a second.
Wrong that it shouldn't be here.
Quit and just call this quit button.
OK.
Excellent.
So I'll just save this and I'll save it into the my scenes and I'll call this main menu.
I do need a new script just for the main menu.
Notice, I only really have three scripts.
This afps counter is only for testing purposes when we finalize the game will take that script out of
there.
So the moment I got three scripts and we have to create a new one, however, create seashell script.
Some people list the menu to be a really small script.
Only if it gets called on the menu scene anyway.
OK, we'll need to load the scenes and say using unity engine scene management.
So I get access to that.
I don't need to start doing it.
An update.
This is simply going to be whenever you press a certain button.
So we're going to say public void is custom function.
I will simply call play game.
If you click the button, we're going to say scene manager.
Well, Lozzi, the scene is going to be number one this time.
So main menu is going to sit zero.
And then if we click the quit button to public void quit game.
This one is an application command application to quit.
OK, not well, then quit out of the application and return you back to your phone's operating system,
that will only work when you export the game inside of you in the tea, obviously that Putin won't do
very much inside of the editor.
OK, so.
Let's now attach this menu to the canvas.
Great.
I need to go to my file, save file, build settings.
Look at open scenes.
My main menu, and just click and drag that one to both the main scenes and our main menu.
Zero main scenes.
All right.
Very important.
Now my play button.
Click the plus on the on click.
Take my canvas and drag that into that.
And then from the manuscript script can simply say play game.
Same thing with the quote we just clicked.
Plus the canvas into the choose menu and quick game.
All right.
Excellent.
Sorted.
So let's just save that and give it a test.
You we go and play and we go on them into the game.
Excellent.
So now, in fact, actually, I think in the next game we'll until the actual game over stuff and get
it back to return back to the main menu.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.