Want to learn how to create advanced menus? 👉 Check out my newest course, Master Unity UI ➡ bit.ly/cc-unity-ui-6 It’s packed with everything you need to create awesome UI ✨🎨
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.
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"); } }
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.
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?
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.
bonjour vous serait t'il possible de faire un tuto sur un systeme de menu complet ? le bouton play , le bouton options avec toutes les configurations ect ? ! merci
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
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.
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?
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
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
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
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.
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?
Want to learn how to create advanced menus?
👉 Check out my newest course, Master Unity UI ➡ bit.ly/cc-unity-ui-6
It’s packed with everything you need to create awesome UI ✨🎨
Thank you so much for this. Probably the best tutorial I have seen on the subject, and generally a very pleasant watching/learning experience.
can you hear that? its the level up sound! i feel stronger every time watch your video!
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
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.
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");
}
}
I'm writing that script and now I find out it's down here XD
Thx mamamammamamamaam amamamamia
thx i think i typed something wrong so this helped
For me it doesnt work
Thank you sir for your tutorials which make it clear how all this stuff works in Unity! It helps SOOOOO MUCH!
You are the most useful Unity channel i've found. Good luck in any of your future projects !
Wow, thanks! Be sure to subscribe for future videos and good luck with your projects! 🎉
what about brackeys
Excellent work. Thank you for this content.
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.
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
Thank you very much! A very good video to follow to. Really informative while also keeping it simple for beginners.
This helped me a lot, thanks for the help
Yooooo this is such a good toutorial thanks dude!
Glad it helped! Consider subscribing for more Unity UI tutorials - next up "Unity UI masking!" ;)
@@CocoCode take my sub
Thanks so much! This was such a great tutorial
Super informational tutorial and very well made. Good job and thanks :)
Amazing tutorial. Thank you!
u r lowkey the goat
Keep it up, this is so underrated.
This tutorial helped me a ton, thank you.
Glad it helped, thank you! Be sure to check out other Unity tutorials on my channel 🌟
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
Life Saver really i wish you nothing but the best
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?
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.
Very clear and straightforward! Thank you!
thank you for the hard work, you explain slowly it was very helpful!
Great tutorial!
Very good explanation and the slow pace is a big +++++ 🍀
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.
bonjour vous serait t'il possible de faire un tuto sur un systeme de menu complet ? le bouton play , le bouton options avec toutes les configurations ect ? ! merci
after I go into the settings and come back, the start and exit buttons are not animated, what should I do?
thanks so much! i was stuck on main menu for hours but u helped me
Glad to hear that! Be sure to check out my other Discord server - Coco Code, it's more active ❤️
(echter mann)
The only one that works for me, Very useful channel Thank you :)
is it possible to do this in plain code ?
because i dont like all the useless drag & drop building workflow, its so restricted...
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
I don't click my Button it Instantly Warps to the Game Scene
Thanks you so much :)
When I get to this scene from other scene animations doesn't work anymore :(
thanks for the help.
You are the best!!! :D
Thank you!!
Thank you!
Thank you so much. But how abouth esc to Menu?
incredible tutorial, thanks
Where did he create the title?
Hey i forgot to tell you that you are awesome
thanks man really appreciate it :)
all the sizing for the logo and buttons is off.
i cant find a round rectangle picture
Thank you sooo much mate
Thank you
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.
Did you manage to resolve this?
@@napoleonbonerfarte6739 I’m not sure tbh. I don’t even really remember what project I was working on when I found this video.
@@NicRuiz88 yeah I don't remember how I fixed it either just restarted it ig
Omg, so much knowelage.
i cant find the start menu and exit menu
thx for it
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?
thank you so much
Nice
Are you doing Coco Code binge watching? :D
Why do you not have a lot of subs!!!
can u add your game after making the main menu
What did you use for Designing that UI???
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
Nice bro
Thanks bro 😉
THANKS!
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
Just posted a video exactly about that! Check out "Master Unity Button OnClick actions!" on my channel 🎉
@@CocoCodeCould have just answered here now i gotta sift through an entire video to find one answer
very good explained ... but how can I recall the menu //canvas again ... thx in advance!
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
@@CocoCode understood. thank you!
13:14 that main menu option doesn't come up for me, can someone tell me what I did wrong?
Could u expand your question ?
@@marcinziajkowski3870 I should have updated but I think I got it
Thank you for trying to help though
similar problem: when I start the game I get the error "NullReferenceException: Object Reference not set to an instance of an object"
How did you solve this? I'm having the same problem. Thnx
Love the accent
:)
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
THX bor
Cool
This is for mobile or not?
Maybe C-sharp is hard to coding but I will never try it 😒
I have a 3d game and when i create an new scene it is 3d too. how to avoid that?
How can I make this work with a controller at the same time?
Hey i have a little problem. I cant add an script to Canvas. Can someone help me?
The script didnt work with me what should i do
I can’t find my logo :/
Are u polish?
Yes I am! Witam ☀️
@@CocoCode polska gurom
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
my start button isnt working :/
can i create the buttons in photoshop??
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
@@CocoCode Thanks
@@CocoCode Thanks so much for this video! Really helped
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.
What part are you missing?
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?
I have the same issue did you found a solution?
Just found the solution. turning off Baked Global Illumination in lighting settings works
@@ZanjiMusic I turned off auto-generate in lightning and then clicked on generate settings for both the scenes. It worked perfect.
@@ZanjiMusic Will try turning off Baked Global Illumination too thanks.
Mee too same issue
For me I don't see normal
wow
Hah, working on that, hope you subscribed! :D
@@CocoCode i did
7:46
Thankyou so much
Thank you
I renamed my samplescene to game and it all reset???? what do i do