MAIN MENU in Unity - Unity UI tutorial

Поділитися
Вставка
  • Опубліковано 26 лис 2024

КОМЕНТАРІ • 134

  • @CocoCode
    @CocoCode  Місяць тому

    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 ✨🎨

  • @danielamareen7321
    @danielamareen7321 2 роки тому +5

    Thank you so much for this. Probably the best tutorial I have seen on the subject, and generally a very pleasant watching/learning experience.

  • @akmaludddin9281
    @akmaludddin9281 8 місяців тому +1

    can you hear that? its the level up sound! i feel stronger every time watch your video!

  • @trafalgarlqw
    @trafalgarlqw 2 роки тому +6

    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

  • @MarcosVinicius-gd5bb
    @MarcosVinicius-gd5bb 2 роки тому +8

    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.

  • @keybindyt8193
    @keybindyt8193 3 роки тому +39

    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 3 роки тому

      thx i think i typed something wrong so this helped

    • @antonnia4fun545
      @antonnia4fun545 2 роки тому +1

      For me it doesnt work

  • @olegparamonov7670
    @olegparamonov7670 2 роки тому +1

    Thank you sir for your tutorials which make it clear how all this stuff works in Unity! It helps SOOOOO MUCH!

  • @ramialbadri5006
    @ramialbadri5006 3 роки тому +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

  • @empoweredchoice1893
    @empoweredchoice1893 Рік тому +1

    Excellent work. Thank you for this content.

  • @stingandr
    @stingandr 2 роки тому +5

    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 4 місяці тому

      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

  • @Gyllendalarn
    @Gyllendalarn 2 роки тому +1

    Thank you very much! A very good video to follow to. Really informative while also keeping it simple for beginners.

  • @mustafadogan3020
    @mustafadogan3020 2 роки тому +1

    This helped me a lot, thanks for the help

  • @cryptic9510
    @cryptic9510 4 роки тому +9

    Yooooo this is such a good toutorial thanks dude!

    • @CocoCode
      @CocoCode  4 роки тому

      Glad it helped! Consider subscribing for more Unity UI tutorials - next up "Unity UI masking!" ;)

    • @cryptic9510
      @cryptic9510 4 роки тому

      @@CocoCode take my sub

  • @ayonete
    @ayonete 2 роки тому +1

    Thanks so much! This was such a great tutorial

  • @dualbladedtvrecords4383
    @dualbladedtvrecords4383 3 роки тому +2

    Super informational tutorial and very well made. Good job and thanks :)

  • @alexkosic1832
    @alexkosic1832 3 роки тому +1

    Amazing tutorial. Thank you!

  • @raresanghel4143
    @raresanghel4143 6 місяців тому

    u r lowkey the goat

  • @realm_hopper
    @realm_hopper 3 роки тому +2

    Keep it up, this is so underrated.
    This tutorial helped me a ton, thank you.

    • @CocoCode
      @CocoCode  3 роки тому +2

      Glad it helped, thank you! Be sure to check out other Unity tutorials on my channel 🌟

  • @quontiumflight
    @quontiumflight 2 роки тому +1

    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

  • @Low_Power_Mode_30
    @Low_Power_Mode_30 2 роки тому

    Life Saver really i wish you nothing but the best

  • @jonathandelgado2425
    @jonathandelgado2425 2 роки тому +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?

    • @MarcosVinicius-gd5bb
      @MarcosVinicius-gd5bb 2 роки тому

      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.

  • @C-126
    @C-126 3 роки тому +1

    Very clear and straightforward! Thank you!

  • @marinat.j6167
    @marinat.j6167 3 роки тому +1

    thank you for the hard work, you explain slowly it was very helpful!

  • @benas5196
    @benas5196 2 роки тому

    Great tutorial!

  • @anttipylsymusic
    @anttipylsymusic 3 роки тому

    Very good explanation and the slow pace is a big +++++ 🍀

  • @Pjoor_YT
    @Pjoor_YT 8 місяців тому

    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.

  • @AurelienGatineau
    @AurelienGatineau 3 місяці тому

    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

  • @timussa3007
    @timussa3007 Рік тому

    after I go into the settings and come back, the start and exit buttons are not animated, what should I do?

  • @TheOnlyGamingMC
    @TheOnlyGamingMC 3 роки тому +1

    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 ❤️

  • @darkerror0539
    @darkerror0539 10 місяців тому

    (echter mann)

  • @ramim.5856
    @ramim.5856 3 роки тому

    The only one that works for me, Very useful channel Thank you :)

  • @vornamenachname906
    @vornamenachname906 3 роки тому

    is it possible to do this in plain code ?
    because i dont like all the useless drag & drop building workflow, its so restricted...

  • @keiran8884
    @keiran8884 2 роки тому +1

    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

  • @larawolfi6647
    @larawolfi6647 2 роки тому +1

    I don't click my Button it Instantly Warps to the Game Scene

  • @luggyo2451
    @luggyo2451 Рік тому

    Thanks you so much :)

  • @Donbros
    @Donbros 3 роки тому +1

    When I get to this scene from other scene animations doesn't work anymore :(

  • @amansaxena6798
    @amansaxena6798 2 роки тому

    thanks for the help.

  • @Selflick
    @Selflick 3 роки тому +2

    You are the best!!! :D

  • @Pie19
    @Pie19 2 роки тому

    Thank you!!

  • @wynot7196
    @wynot7196 2 роки тому

    Thank you!

  • @canesk2023
    @canesk2023 3 роки тому

    Thank you so much. But how abouth esc to Menu?

  • @abdouleBG
    @abdouleBG 3 роки тому

    incredible tutorial, thanks

  • @objektkordel4038
    @objektkordel4038 Рік тому

    Where did he create the title?

  • @kingofroms7224
    @kingofroms7224 3 роки тому

    Hey i forgot to tell you that you are awesome

  • @SENZEL00
    @SENZEL00 3 роки тому

    thanks man really appreciate it :)

  • @RanchCookies
    @RanchCookies 2 роки тому

    all the sizing for the logo and buttons is off.

  • @JOSH.FTBL.
    @JOSH.FTBL. 2 роки тому

    i cant find a round rectangle picture

  • @prod.spextra
    @prod.spextra 3 роки тому +1

    Thank you sooo much mate

  • @esharpdevelopers2944
    @esharpdevelopers2944 3 роки тому

    Thank you

  • @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 Рік тому

      Did you manage to resolve this?

    • @NicRuiz88
      @NicRuiz88 Рік тому

      @@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 Рік тому +1

      @@NicRuiz88 yeah I don't remember how I fixed it either just restarted it ig

  • @marcinziajkowski3870
    @marcinziajkowski3870 3 роки тому

    Omg, so much knowelage.

  • @zandrellburgos6986
    @zandrellburgos6986 3 роки тому

    i cant find the start menu and exit menu

  • @metterop
    @metterop 2 роки тому

    thx for it

  • @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?

  • @ohh5189
    @ohh5189 3 роки тому +1

    thank you so much

  • @sparklydavid
    @sparklydavid 2 роки тому

    Nice

    • @CocoCode
      @CocoCode  2 роки тому

      Are you doing Coco Code binge watching? :D

  • @Ghosty-ec8py
    @Ghosty-ec8py 3 роки тому

    Why do you not have a lot of subs!!!

  • @xtream07
    @xtream07 3 роки тому

    can u add your game after making the main menu

  • @MrZazzy
    @MrZazzy 3 роки тому

    What did you use for Designing that UI???

  • @azeemsworld5240
    @azeemsworld5240 3 роки тому +1

    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

  • @demipro7526
    @demipro7526 4 роки тому

    Nice bro

  • @vendita2
    @vendita2 3 роки тому

    THANKS!

  • @iamsam9183
    @iamsam9183 4 роки тому +1

    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  4 роки тому

      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 роки тому +1

      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!

  • @clewthulhu
    @clewthulhu 3 роки тому +1

    13:14 that main menu option doesn't come up for me, can someone tell me what I did wrong?

    • @marcinziajkowski3870
      @marcinziajkowski3870 3 роки тому +1

      Could u expand your question ?

    • @clewthulhu
      @clewthulhu 3 роки тому

      @@marcinziajkowski3870 I should have updated but I think I got it

    • @clewthulhu
      @clewthulhu 3 роки тому

      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 2 роки тому

      How did you solve this? I'm having the same problem. Thnx

  • @SENZEL00
    @SENZEL00 3 роки тому

    Love the accent
    :)

  • @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

  • @majkl-iu3ee
    @majkl-iu3ee 3 роки тому

    THX bor

  • @zyxha6491
    @zyxha6491 3 роки тому

    Cool

  • @muhdhafiz4562
    @muhdhafiz4562 3 роки тому

    This is for mobile or not?

  • @RMCanimationOFFICAL
    @RMCanimationOFFICAL Рік тому

    Maybe C-sharp is hard to coding but I will never try it 😒

  • @jacr6819
    @jacr6819 3 роки тому

    I have a 3d game and when i create an new scene it is 3d too. how to avoid that?

  • @DrawMaster115
    @DrawMaster115 Рік тому

    How can I make this work with a controller at the same time?

  • @derechtemidnaplays
    @derechtemidnaplays 3 роки тому

    Hey i have a little problem. I cant add an script to Canvas. Can someone help me?

  • @odev8667
    @odev8667 3 роки тому

    The script didnt work with me what should i do

  • @NotActuallyRealYT
    @NotActuallyRealYT 3 роки тому

    I can’t find my logo :/

  • @jakub-lt8gl
    @jakub-lt8gl 3 роки тому +1

    Are u polish?

    • @CocoCode
      @CocoCode  3 роки тому

      Yes I am! Witam ☀️

    • @klajswister
      @klajswister 2 роки тому

      @@CocoCode polska gurom

  • @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

  • @mousekeyyt
    @mousekeyyt 3 роки тому

    my start button isnt working :/

  • @KannieGamen
    @KannieGamen 3 роки тому

    can i create the buttons in photoshop??

    • @CocoCode
      @CocoCode  3 роки тому +1

      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

  • @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?

  • @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 роки тому +1

      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

  • @Coldr_
    @Coldr_ 3 роки тому

    For me I don't see normal

  • @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

  • @C-126
    @C-126 3 роки тому

    7:46

  • @amjadmohsin7
    @amjadmohsin7 2 роки тому

    Thankyou so much

  • @tusharkumar303
    @tusharkumar303 2 роки тому

    Thank you

  • @Plapp_
    @Plapp_ 3 роки тому

    I renamed my samplescene to game and it all reset???? what do i do