MAIN MENU in Unity - Unity UI tutorial

  Рет қаралды 126,464

Coco Code

Coco Code

Күн бұрын

🎁 Support me and DOWNLOAD Unity project: www.patreon.com/posts/4648379...
This tutorial/guide will show you how to create Main menu in Unity UI with option to start your game, options screen and button to close your game. You will also learn:
- How to create new Scene with main menu
- How to create menu in Unity UI
- How to set sprite border and tiling
- How to create UI button animation with transitions
💜 Join our Discord: / discord
🔵 Follow me on Twitter: / bionicl333
Timestamps:
0:00 - Intro
0:11 - Designing main menu
3:40 - Button image split/border
5:28 - Button animations and design
8:53 - Settings menu
11:24 - Scripting buttons

Пікірлер: 132
@danielamareen7321
@danielamareen7321 Жыл бұрын
Thank you so much for this. Probably the best tutorial I have seen on the subject, and generally a very pleasant watching/learning experience.
@trafalgarlqw
@trafalgarlqw 2 жыл бұрын
This helped me so much, especially in my project that im doing that already has a template it was so easy to integrate. thank you so much
@olegparamonov7670
@olegparamonov7670 2 жыл бұрын
Thank you sir for your tutorials which make it clear how all this stuff works in Unity! It helps SOOOOO MUCH!
@Gyllendalarn
@Gyllendalarn Жыл бұрын
Thank you very much! A very good video to follow to. Really informative while also keeping it simple for beginners.
@dualbladedtvrecords4383
@dualbladedtvrecords4383 2 жыл бұрын
Super informational tutorial and very well made. Good job and thanks :)
@ayonete
@ayonete 2 жыл бұрын
Thanks so much! This was such a great tutorial
@alexkosic1832
@alexkosic1832 2 жыл бұрын
Amazing tutorial. Thank you!
@mustafadogan3020
@mustafadogan3020 2 жыл бұрын
This helped me a lot, thanks for the help
@akmaludddin9281
@akmaludddin9281 5 ай бұрын
can you hear that? its the level up sound! i feel stronger every time watch your video!
@empoweredchoice1893
@empoweredchoice1893 Жыл бұрын
Excellent work. Thank you for this content.
@MarcosVinicius-gd5bb
@MarcosVinicius-gd5bb Жыл бұрын
If the Play() and Quit() does not appear under functions, click in Canvas under Hierarchy and make sure that the script selected is the one that you created, instead of the one unity creates for you.
@marinat.j6167
@marinat.j6167 3 жыл бұрын
thank you for the hard work, you explain slowly it was very helpful!
@C-126
@C-126 3 жыл бұрын
Very clear and straightforward! Thank you!
@benas5196
@benas5196 2 жыл бұрын
Great tutorial!
@raresanghel4143
@raresanghel4143 2 ай бұрын
u r lowkey the goat
@norbertmojsej7818
@norbertmojsej7818 3 жыл бұрын
Keep it up, this is so underrated. This tutorial helped me a ton, thank you.
@CocoCode
@CocoCode 3 жыл бұрын
Glad it helped, thank you! Be sure to check out other Unity tutorials on my channel 🌟
@Low_Power_Mode_30
@Low_Power_Mode_30 2 жыл бұрын
Life Saver really i wish you nothing but the best
@ramialbadri5006
@ramialbadri5006 3 жыл бұрын
You are the most useful Unity channel i've found. Good luck in any of your future projects !
@CocoCode
@CocoCode 3 жыл бұрын
Wow, thanks! Be sure to subscribe for future videos and good luck with your projects! 🎉
@satindar31
@satindar31 3 жыл бұрын
what about brackeys
@TheOnlyGamingMC
@TheOnlyGamingMC 3 жыл бұрын
thanks so much! i was stuck on main menu for hours but u helped me
@CocoCode
@CocoCode 3 жыл бұрын
Glad to hear that! Be sure to check out my other Discord server - Coco Code, it's more active ❤️
@amansaxena6798
@amansaxena6798 2 жыл бұрын
thanks for the help.
@luggyo2451
@luggyo2451 Жыл бұрын
Thanks you so much :)
@wynot7196
@wynot7196 2 жыл бұрын
Thank you!
@cryptic9510
@cryptic9510 3 жыл бұрын
Yooooo this is such a good toutorial thanks dude!
@CocoCode
@CocoCode 3 жыл бұрын
Glad it helped! Consider subscribing for more Unity UI tutorials - next up "Unity UI masking!" ;)
@cryptic9510
@cryptic9510 3 жыл бұрын
@@CocoCode take my sub
@Pie19
@Pie19 2 жыл бұрын
Thank you!!
@anttipylsymusic
@anttipylsymusic 3 жыл бұрын
Very good explanation and the slow pace is a big +++++ 🍀
@amjadmohsin7
@amjadmohsin7 Жыл бұрын
Thankyou so much
@stingandr
@stingandr Жыл бұрын
hey! if you got free time, may you give me some solutions to my problem, please? So whenever i click the settings menu, and then go back, the square behing "Start" and "Quit" doesnt show up when i put my mouse on top if it.
@VladOOOO3
@VladOOOO3 15 күн бұрын
I know it's been a year, but still - have you found the solution? It's weird, all the animations seems to work fine in animator
@ramim.5856
@ramim.5856 3 жыл бұрын
The only one that works for me, Very useful channel Thank you :)
@tusharkumar303
@tusharkumar303 2 жыл бұрын
Thank you
@abdouleBG
@abdouleBG 3 жыл бұрын
incredible tutorial, thanks
@keiran8884
@keiran8884 2 жыл бұрын
If you have more than 1 level in your game i suggest putting this public void StartGame() { SceneManager.LoadScene(+ 1); } } and not this public void StartGame() { SceneManager.LoadScene("level1"); } } just add the scenes it build setting menu first then lvl 1
@metterop
@metterop 2 жыл бұрын
thx for it
@kingofroms7224
@kingofroms7224 3 жыл бұрын
Hey i forgot to tell you that you are awesome
@darkerror0539
@darkerror0539 6 ай бұрын
(echter mann)
@prod.spextra
@prod.spextra 3 жыл бұрын
Thank you sooo much mate
@marcinziajkowski3870
@marcinziajkowski3870 2 жыл бұрын
Omg, so much knowelage.
@Selflick
@Selflick 3 жыл бұрын
You are the best!!! :D
@SENZEL00
@SENZEL00 2 жыл бұрын
thanks man really appreciate it :)
@ohh5189
@ohh5189 3 жыл бұрын
thank you so much
@canesk2023
@canesk2023 2 жыл бұрын
Thank you so much. But how abouth esc to Menu?
@quontiumflight
@quontiumflight 2 жыл бұрын
Why does my background images never show in the actual Scene? I can never edit/see them and the only way TO see them is by switching to the game tab
@Donbros
@Donbros 3 жыл бұрын
When I get to this scene from other scene animations doesn't work anymore :(
@vornamenachname906
@vornamenachname906 2 жыл бұрын
is it possible to do this in plain code ? because i dont like all the useless drag & drop building workflow, its so restricted...
@keybindyt8193
@keybindyt8193 3 жыл бұрын
Here is The Full Code..... Your Welcome>😉 < Script: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class MainMenu : MonoBehaviour { public void ExitButton() { Application.Quit(); Debug.Log("Game closed"); } public void StartGame() { SceneManager.LoadScene("Game"); } }
@majkl-iu3ee
@majkl-iu3ee 3 жыл бұрын
I'm writing that script and now I find out it's down here XD
@hassanmaswedish2290
@hassanmaswedish2290 3 жыл бұрын
Thx mamamammamamamaam amamamamia
@couthdragon
@couthdragon 2 жыл бұрын
thx i think i typed something wrong so this helped
@antonnia4fun545
@antonnia4fun545 2 жыл бұрын
For me it doesnt work
@Pjoor_YT
@Pjoor_YT 4 ай бұрын
I've added a custom font to TextMesh Pro and it's displaying a message that the underline feature is not available, plss help me.
@timussa3007
@timussa3007 9 ай бұрын
after I go into the settings and come back, the start and exit buttons are not animated, what should I do?
@sparklydavid
@sparklydavid Жыл бұрын
Nice
@CocoCode
@CocoCode Жыл бұрын
Are you doing Coco Code binge watching? :D
@demipro7526
@demipro7526 3 жыл бұрын
Nice bro
@CocoCode
@CocoCode 3 жыл бұрын
Thanks bro 😉
@jonathandelgado2425
@jonathandelgado2425 Жыл бұрын
Thanks, when creating a "on click" event and dragging canvas and doing the code and all, the Main menu option does not appear under functions. Any ideas?
@MarcosVinicius-gd5bb
@MarcosVinicius-gd5bb Жыл бұрын
If the Play() and Quit() does not appear under functions, click in Canvas under Hierarchy and make sure that the script selected is the one that you created, instead of the one unity creates for you.
@vendita2
@vendita2 3 жыл бұрын
THANKS!
@larawolfi6647
@larawolfi6647 2 жыл бұрын
I don't click my Button it Instantly Warps to the Game Scene
@MrFarkasOfficial
@MrFarkasOfficial 3 жыл бұрын
In this video you set active and deactivate the settings menu with two onclick event triggers. Is this better than using the script method you show in your onclick video?
@xtream07
@xtream07 2 жыл бұрын
can u add your game after making the main menu
@NicRuiz88
@NicRuiz88 2 жыл бұрын
When I clicked on auto generate animation and clicked save, it didn't make that animation tab on the bottom and I got a warning saying "unexpected call to endfadegroup" and then when I went to the animations group the animation was there but it didn't do anything.
@napoleonbonerfarte6739
@napoleonbonerfarte6739 11 ай бұрын
Did you manage to resolve this?
@NicRuiz88
@NicRuiz88 11 ай бұрын
@@napoleonbonerfarte6739 I’m not sure tbh. I don’t even really remember what project I was working on when I found this video.
@napoleonbonerfarte6739
@napoleonbonerfarte6739 11 ай бұрын
@@NicRuiz88 yeah I don't remember how I fixed it either just restarted it ig
@zandrellburgos6986
@zandrellburgos6986 2 жыл бұрын
i cant find the start menu and exit menu
@JOSH.FTBL.
@JOSH.FTBL. 2 жыл бұрын
i cant find a round rectangle picture
@objektkordel4038
@objektkordel4038 8 ай бұрын
Where did he create the title?
@majkl-iu3ee
@majkl-iu3ee 3 жыл бұрын
THX bor
@Ghosty-ec8py
@Ghosty-ec8py 3 жыл бұрын
Why do you not have a lot of subs!!!
@RanchCookies
@RanchCookies 2 жыл бұрын
all the sizing for the logo and buttons is off.
@evilvoid2968
@evilvoid2968 2 жыл бұрын
Me: *Follows his tutorials but got an erros so i deleted all script to replace them again* Unity: Hey remember this script that you deleted? yeah it still got some errrors
@azeemsworld5240
@azeemsworld5240 3 жыл бұрын
I used it for a 3d game of mine and if I opened the game sceane in hierarchy and hit play the menu won't come and if I opened menu scene and hit play the menu and the game will work but in the game my textures and all the directional light is not working Plz reply why this occuring
@zyxha6491
@zyxha6491 2 жыл бұрын
Cool
@iamsam9183
@iamsam9183 3 жыл бұрын
when you explane things like the On Click(). you need to tell people what the settings and stuff do. because I'm lost because I don't know what they do
@CocoCode
@CocoCode 3 жыл бұрын
Just posted a video exactly about that! Check out "Master Unity Button OnClick actions!" on my channel 🎉
@KallTorak
@KallTorak 2 жыл бұрын
@@CocoCodeCould have just answered here now i gotta sift through an entire video to find one answer
@erdbeerbus
@erdbeerbus 3 жыл бұрын
very good explained ... but how can I recall the menu //canvas again ... thx in advance!
@CocoCode
@CocoCode 3 жыл бұрын
I'm not sure what are you asking about? If you'd like to go back to the main menu scene, just follow the steps to switch scene
@erdbeerbus
@erdbeerbus 3 жыл бұрын
@@CocoCode understood. thank you!
@MrZazzy
@MrZazzy 3 жыл бұрын
What did you use for Designing that UI???
@nintexonfire
@nintexonfire 3 жыл бұрын
can someone help me because if i want to choose my script at the new event it dont show me my script but why? pls help
@jacr6819
@jacr6819 3 жыл бұрын
I have a 3d game and when i create an new scene it is 3d too. how to avoid that?
@derechtemidnaplays
@derechtemidnaplays 3 жыл бұрын
Hey i have a little problem. I cant add an script to Canvas. Can someone help me?
@SENZEL00
@SENZEL00 2 жыл бұрын
Love the accent :)
@Plapp_
@Plapp_ 3 жыл бұрын
I renamed my samplescene to game and it all reset???? what do i do
@VRDevStory
@VRDevStory 3 жыл бұрын
After I press start and move to my game the colors and detailing is different from when I was running only the Game scene. Can anybody help regarding this?
@ZanjiMusic
@ZanjiMusic 3 жыл бұрын
I have the same issue did you found a solution?
@ZanjiMusic
@ZanjiMusic 3 жыл бұрын
Just found the solution. turning off Baked Global Illumination in lighting settings works
@VRDevStory
@VRDevStory 3 жыл бұрын
@@ZanjiMusic I turned off auto-generate in lightning and then clicked on generate settings for both the scenes. It worked perfect.
@VRDevStory
@VRDevStory 3 жыл бұрын
@@ZanjiMusic Will try turning off Baked Global Illumination too thanks.
@azeemsworld5240
@azeemsworld5240 3 жыл бұрын
Mee too same issue
@clewthulhu
@clewthulhu 2 жыл бұрын
13:14 that main menu option doesn't come up for me, can someone tell me what I did wrong?
@marcinziajkowski3870
@marcinziajkowski3870 2 жыл бұрын
Could u expand your question ?
@clewthulhu
@clewthulhu 2 жыл бұрын
@@marcinziajkowski3870 I should have updated but I think I got it
@clewthulhu
@clewthulhu 2 жыл бұрын
Thank you for trying to help though
@m.h.4083
@m.h.4083 2 жыл бұрын
similar problem: when I start the game I get the error "NullReferenceException: Object Reference not set to an instance of an object"
@jonathandelgado2425
@jonathandelgado2425 Жыл бұрын
How did you solve this? I'm having the same problem. Thnx
@akkitty22
@akkitty22 3 жыл бұрын
Brakeys skipped the parts at the end and others too. I thought this would be the easiest thing to do - make a main menu - to learn Unity. Turns out explaining that is too difficult.
@CocoCode
@CocoCode 3 жыл бұрын
What part are you missing?
@odev8667
@odev8667 3 жыл бұрын
The script didnt work with me what should i do
@Ghosty-ec8py
@Ghosty-ec8py 3 жыл бұрын
wow
@CocoCode
@CocoCode 3 жыл бұрын
Hah, working on that, hope you subscribed! :D
@Ghosty-ec8py
@Ghosty-ec8py 3 жыл бұрын
@@CocoCode i did
@muhdhafiz4562
@muhdhafiz4562 3 жыл бұрын
This is for mobile or not?
@KannieGamen
@KannieGamen 3 жыл бұрын
can i create the buttons in photoshop??
@CocoCode
@CocoCode 3 жыл бұрын
Sure! You can create button graphics in Photoshop, but I'd suggest to add text in the Unity to make sure it will be scaled properly
@KannieGamen
@KannieGamen 3 жыл бұрын
@@CocoCode Thanks
@KannieGamen
@KannieGamen 3 жыл бұрын
@@CocoCode Thanks so much for this video! Really helped
@RMCanimationOFFICAL
@RMCanimationOFFICAL Жыл бұрын
Maybe C-sharp is hard to coding but I will never try it 😒
@manual7317
@manual7317 3 жыл бұрын
my start button isnt working :/
@NotActuallyRealYT
@NotActuallyRealYT 3 жыл бұрын
I can’t find my logo :/
@C-126
@C-126 3 жыл бұрын
7:46
@jakub-lt8gl
@jakub-lt8gl 3 жыл бұрын
Are u polish?
@CocoCode
@CocoCode 3 жыл бұрын
Yes I am! Witam ☀️
@klajswister
@klajswister 2 жыл бұрын
@@CocoCode polska gurom
@Coldr_
@Coldr_ 3 жыл бұрын
For me I don't see normal
@DrawMaster115
@DrawMaster115 11 ай бұрын
How can I make this work with a controller at the same time?
@esharpdevelopers2944
@esharpdevelopers2944 2 жыл бұрын
Thank you
Mask in Unity UI like a PRO! (+soft mask) - Unity UI tutorial
4:40
How make SWIPE LEVEL MENU in Unity?
13:33
Rehope Games
Рет қаралды 18 М.
Iron Chin ✅ Isaih made this look too easy
00:13
Power Slap
Рет қаралды 36 МЛН
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 202 МЛН
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 58 МЛН
START MENU in Unity
12:52
Brackeys
Рет қаралды 3 МЛН
MAIN MENU in Unity (Best Menu Tutorial 2024)
1:24:21
SpeedTutor
Рет қаралды 197 М.
How to make a menu in Unity - UI Tutorial
26:27
Tarodev
Рет қаралды 182 М.
TOUCH CONTROLS in Unity!
16:09
Brackeys
Рет қаралды 1,3 МЛН
I Made a Graphics Engine
6:42
Zyger
Рет қаралды 246 М.
Make Your MAIN MENU Quickly! | Unity UI Tutorial For Beginners
10:32
Making UI That Looks Good In Unity
18:06
Game Dev Guide
Рет қаралды 665 М.
Get started with UI Toolkit in Unity
12:29
Sasquatch B Studios
Рет қаралды 27 М.
Drag and drop in Unity UI - create your own inventory UI!
12:47
Coco Code
Рет қаралды 100 М.