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.
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
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
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?
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
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
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 ✨🎨
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
Thank you so much for this. Probably the best tutorial I have seen on the subject, and generally a very pleasant watching/learning experience.
Thank you sir for your tutorials which make it clear how all this stuff works in Unity! It helps SOOOOO 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
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.
u r lowkey the goat
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
This helped me a lot, thanks for the help
Excellent work. Thank you for this content.
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
Amazing tutorial. Thank you!
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
Super informational tutorial and very well made. Good job and thanks :)
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
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 🌟
(echter mann)
Great tutorial!
Life Saver really i wish you nothing but the best
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 ❤️
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.
thank you for the hard work, you explain slowly it was very helpful!
Very clear and straightforward! Thank you!
Very good explanation and the slow pace is a big +++++ 🍀
Thank you!!
I don't click my Button it Instantly Warps to the Game Scene
thanks for the help.
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.
Thanks you so much :)
after I go into the settings and come back, the start and exit buttons are not animated, what should I do?
Thank you!
Where did he create the title?
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
Thank you
You are the best!!! :D
The only one that works for me, Very useful channel Thank you :)
When I get to this scene from other scene animations doesn't work anymore :(
is it possible to do this in plain code ?
because i dont like all the useless drag & drop building workflow, its so restricted...
all the sizing for the logo and buttons is off.
Thank you so much. But how abouth esc to Menu?
Hey i forgot to tell you that you are awesome
thx for it
Omg, so much knowelage.
i cant find a round rectangle picture
Thank you sooo much mate
incredible tutorial, thanks
Nice
Are you doing Coco Code binge watching? :D
i cant find the start menu and exit menu
thanks man really appreciate it :)
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
Nice bro
Thanks bro 😉
thank you so much
can u add your game after making the main menu
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?
THANKS!
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
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
Cool
Why do you not have a lot of subs!!!
Love the accent
:)
THX bor
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
Maybe C-sharp is hard to coding but I will never try it 😒
This is for mobile or not?
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
I have a 3d game and when i create an new scene it is 3d too. how to avoid that?
The script didnt work with me what should i do
Hey i have a little problem. I cant add an script to Canvas. Can someone help me?
How can I make this work with a controller at the same time?
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
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?
I can’t find my logo :/
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
Are u polish?
Yes I am! Witam ☀️
@@CocoCode polska gurom
my start button isnt working :/
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
wow
Hah, working on that, hope you subscribed! :D
@@CocoCode i did
For me I don't see normal
7:46
Thankyou so much
Thank you
I renamed my samplescene to game and it all reset???? what do i do