START MENU in Unity

Поделиться
HTML-код
  • Опубликовано: 28 ноя 2017
  • Learn how to make a main menu using Unity!
    ● www.assetstore.unity3d.com/#!...
    ● Developer Forum: forum.brackeys.com/
    ❤️ Donate: www.paypal.com/donate/?hosted...
    ····················································································
    ► Join Discord: / discord
    ♥ Subscribe: bit.ly/1kMekJV
    ● Website: brackeys.com/
    ● Facebook: / brackeys
    ● Twitter: / brackeystweet
    ········································­­·······································­·­····
    Edited by the lovely Sofibab.
    ········································­­·······································­·­····
    ► All content by Brackeys is 100% free. We believe that education should be available for everyone.
    ❤️ Donate: www.paypal.com/donate/?hosted...
    ········································­­·······································­·­····
    ♪ Baby Plays Electro Games
    teknoaxe.com/cgi-bin/link_code...

Комментарии • 3,6 тыс.

  • @bshaun2740
    @bshaun2740 2 года назад +854

    FYI this tutorial still works (in general). There are still a few problems in this tutorial as Unity has updated and things have changed. Here are some problems people seem to be facing with the fixes:
    1 - Background Image can't be applied
    Select the image from your assets folder and open it in the inspector. Change the texture type from (Default) to (Sprite 2D and UI). It can now be used as an Image in the UI
    2 - Game Scene is dark after running Menu Scene
    In both scenes go Window > Rendering > Lighting > Scene and at the bottom click on the arrow on the Generate Lighting Tab. Disable (Auto Generate) if it's on, then select Clear Baked Data, then select generate lighting.
    3 - TextMeshPro not in asset store
    TextMeshPro is now built into Unity and can be used without needing to download further files. It can be used as an alternative to basic (Text).

  • @Adomas_B
    @Adomas_B 3 года назад +1808

    There are 3 times you visit a Brackey's tutorial:
    The first one is when you copy it.
    The second one is when you forget one thing.
    The third one is when you show it to a friend.

    • @realhardik18
      @realhardik18 3 года назад +13

      true af

    • @dubby7189
      @dubby7189 3 года назад +7

      Why does my MainMenu script not show in "on click" plz help me

    • @dubby7189
      @dubby7189 3 года назад +3

      Why does my MainMenu script not show in "on click" plz help me

    • @Adomas_B
      @Adomas_B 3 года назад +1

      @@dubby7189 put the button as a child in an empty game object called menu, the add menu script to menu

    • @dubby7189
      @dubby7189 3 года назад +1

      @@Adomas_B what?

  • @krzan_kristina_3d_rigging219
    @krzan_kristina_3d_rigging219 2 года назад +201

    0:00 Intoduction
    0:12 Canvas and Panels
    1:30 Text Mesh Pro
    3:10 Colour Gradient
    4:00 Text to Button
    5:10 Duplicate Button
    6:25 Basic Options menu and Slider
    8:00 Functionality
    10:20 Add Actions to Buttons

    • @MasterGamer2710
      @MasterGamer2710 2 года назад

      good job

    • @ZomBeeDabadee
      @ZomBeeDabadee Год назад +6

      Also here is the code if anyone wants to copy paste, but i recommend watching the video its pretty educational
      using System.Collections;
      using System.Collections.Generic;
      using UnityEngine;
      using UnityEngine.SceneManagement;
      public class mainmenu : MonoBehaviour {
      public void PlayGame()
      {
      SceneManager.LoadScene(1);
      }
      public void QuitGame ()
      {
      Debug.Log("QUIT!");
      Application.Quit();
      }
      }

    • @aarona9525
      @aarona9525 Год назад +1

      @@ZomBeeDabadee THANK YOU SO MUCH

    • @nugg3tcraft204
      @nugg3tcraft204 Год назад +1

      @@aarona9525 bro its a couple lines of code

    • @aarona9525
      @aarona9525 Год назад

      @@nugg3tcraft204 it's been 2 months y do you care?

  • @Leeyouno
    @Leeyouno 3 года назад +1761

    I'm actually pretty surprised at how building a game is 20% work and 80% polishing the finer detail.

    • @TinyDeskEngineer
      @TinyDeskEngineer 3 года назад +316

      But polishing the finer details is still work. So it's 100% work.

    • @IGNACY-fp8zo
      @IGNACY-fp8zo 3 года назад +5

      I hope its like that

    • @amirabbasi7848
      @amirabbasi7848 3 года назад +8

      for guys who needs help in highlighted color u need to check the image in the bottun setting

    • @amirabbasi7848
      @amirabbasi7848 3 года назад +3

      @@earthIing he talked about it

    • @amirabbasi7848
      @amirabbasi7848 3 года назад +4

      @@earthIing 7:55

  • @aregee4liff
    @aregee4liff 4 года назад +7

    Thank you! you are always amazing. I took up coding about 2 years ago and then had a baby and put my dreams on hold. Now hes a bit older, I'm less preoccupied with things and want to get back into it. I am so surprised how much I remember and re watching your videos has helped so much. Thank you again!

  • @Frostyno287
    @Frostyno287 6 лет назад +10

    Great tutorial as always! When I was doing menu switching in my project, I had a separate function that took care of the switching. I didn't think of using it the way you did it. Pretty damn neat. Thanks!

  • @Pkai1000
    @Pkai1000 3 года назад +319

    braceys acidently raps:
    "I'm going to make a slider, and make it a bit wider."

  • @KuzmaProDev
    @KuzmaProDev Год назад +23

    The best tutorial I've found on the topic so far: exact, clear, condense.

    • @reyeszenpai7265
      @reyeszenpai7265 Год назад

      can you find the text mesh folder in unity asset store? i cant find it

    • @KuzmaProDev
      @KuzmaProDev Год назад +1

      @@reyeszenpai7265 As far as I can see, it’s included in unity by default now, see in UI submenu when creating game object

    • @CryptedCoder
      @CryptedCoder Год назад

      @@KuzmaProDev i had the same problem. it is built in to the unity editor now

  • @icoivo5529
    @icoivo5529 6 лет назад +27

    Not only an options menu, but also making different graphics and resolution of your game for different settings.
    Great video, btw

    • @Owen3H
      @Owen3H 6 лет назад +1

      Ico Ivo I suggest you watch sebastian lague or gamegrinds videos on an option menu they are super easy to understand

  • @blackwatch4709
    @blackwatch4709 5 лет назад +8

    Everytime I click a unity tutorial on youtube and Brackeys pops up I feel at ease knowing this is gonna be a good tutorial

  • @Vequo
    @Vequo 2 года назад +32

    Rip brackeys. You guys inspired me to make my own game and i am following the 2d ones now. This is a life saver and if you guys are reading this, thank you. From every single one of your subscribers.

    • @chaoticlabzdev
      @chaoticlabzdev 5 месяцев назад +1

      bro he's alive 💀💀

    • @lavodnas7899
      @lavodnas7899 Месяц назад

      @@chaoticlabzdev it's okay man the accident wasn't your fault you gotta move on at some point

  • @Itsuchi2
    @Itsuchi2 4 года назад +9

    This was super great! Clear, concise, easy to follow, and exactly what I needed to learn. Thanks!!!

  • @zuzaratrust
    @zuzaratrust 4 года назад +3

    Thank you so much! This really helped me make my menu, more than other tutorials did! I really appriciate this! Keep up the tutorials, man!

  • @aussieraver7182
    @aussieraver7182 5 лет назад +7

    Maad respect Brackeys, I've been following your videos for 4 years now and I don't even know why I haven't subscribed to you. Subbed!

  • @OfficialRakma
    @OfficialRakma 3 года назад +1

    Great tutorial and love that you explain things on the go, it was a little hard to keep up with your pace. Keep up the good work

  • @shangquin2926
    @shangquin2926 2 года назад +3

    I was trying to learn some simple unity scripting to show my boss a proposal and nothing made sense or was relevant, but in your video you made it extremely easy to follow along so thank you!

  • @matstacy6830
    @matstacy6830 4 года назад +34

    have have watched this video like 20 times. and everytime he says his menu is more fun then his game gets me

  • @stevencvisuals
    @stevencvisuals 3 года назад +711

    I have gotten to the point where the word "PLAY" looks weird now, i've been looking at this word for like 3 hours

    • @fashlehd6883
      @fashlehd6883 3 года назад +24

      Dude I feel you xD
      Actually the same by me today :)

    • @fashlehd6883
      @fashlehd6883 3 года назад +7

      I did it like in the tutorial but when I start the game I cant click at playbutton and it does not have a dark highlightet area :(
      Can u help me?

    • @samudramaola7677
      @samudramaola7677 3 года назад +2

      @@fashlehd6883 Ik same for me

    • @redek4724
      @redek4724 3 года назад +2

      @@fashlehd6883 me too

    • @melteddiamond3236
      @melteddiamond3236 3 года назад +9

      I am seeing the button play, "PALY" or "YPLA", It's really weird.

  • @weasellden
    @weasellden Год назад

    Its Been 4 Years and this still works. Great job Brackeys!

  • @ritojoseblandonpinzon5203
    @ritojoseblandonpinzon5203 Год назад

    You actually helped me a lot. I'm new to unity and I'm really glad you did this. Hope all good to you

  • @LightniteProductions
    @LightniteProductions 4 года назад +3

    Man, I missed watching your tutorials. It's great to be back coding again!

  • @Mora_Saim1
    @Mora_Saim1 3 года назад +454

    "I promise you that it will work" those are the words you don't ever say in computer science 😄

    • @foggyforest2625
      @foggyforest2625 3 года назад +11

      Yes
      It doesn't make any sense to promise something about codes😂

    • @TeChYViDyA
      @TeChYViDyA 3 года назад +1

      true!

    • @thanksfor17ksubscribe32
      @thanksfor17ksubscribe32 3 года назад +1

      play.google.com/store/apps/details?id=com.Scripts.Xo.studio

    • @tinfoilphant1052
      @tinfoilphant1052 3 года назад +19

      It's the same thing like "I think I'm almost finish" and "It's just a little bug. It's probably a one-liner"

    • @just.james.
      @just.james. 3 года назад +4

      @@thanksfor17ksubscribe32 wth the video is made with Kine Master and its just bad quality... y did u link it?

  • @mladizivko
    @mladizivko Год назад +1

    Man, you absolutely saved me for a college project. You're the GOAT of YT, Unity and tutorials!

  • @day35ofdebuggingthesamelin56
    @day35ofdebuggingthesamelin56 3 года назад +1

    Thank you! This is my first time making a game and all your videos have been very helpful.

  • @TechnicJelle
    @TechnicJelle 6 лет назад +672

    Yes!
    Please also do an options menu!
    Maybe with graphics options?

    • @Sparrow420
      @Sparrow420 6 лет назад +26

      please a graphics optings tut, i've been wrecking my brain over it

    • @Owen3H
      @Owen3H 6 лет назад +19

      Check out videos from GameGrind or Sebastian Lague they go over this very nicely

    • @mahmoudshatnawi6122
      @mahmoudshatnawi6122 6 лет назад +2

      Sparrow, same with me haha!
      +thanks Codey!

    • @Owen3H
      @Owen3H 6 лет назад

      Mahmoud Shatnawi No problem :)

    • @JohnWeland
      @JohnWeland 6 лет назад +2

      Totally do this, with graphic options, user input (keyboard/ gamepad binding)

  • @kurtcalanlang3893
    @kurtcalanlang3893 3 года назад +7

    Thank you so much!

  • @zombiekill32
    @zombiekill32 5 месяцев назад

    I for one, personally thank you. I’ve been struggling to create an effective main menu that works. Following your tutorial, has helped me tremendously. You have gained a subscriber.

  • @DarkCloud7
    @DarkCloud7 3 года назад

    Well made. Easy to follow and straight to the point. Keep up the good work and thank you very much.

  • @slubbehedits9302
    @slubbehedits9302 5 лет назад +22

    Another great tutorial! I'll definitely implement something like this in my project. These are very concise and easy to understand. How long have you been working with Unity? It seems like you know almost everything about the software.

  • @shivamchauhan2673
    @shivamchauhan2673 5 лет назад +32

    Sir you are the best man on earth so amazing videos
    My whole summer vacations have become fruitfull only because you
    Thank You
    Soon supporting you on Paetron...❤❤

  • @andreimihai9022
    @andreimihai9022 8 месяцев назад

    One of the best programming tutorials I've ever seen. Great work!

  • @Shadrake
    @Shadrake Год назад +2

    This was super easy to follow and incredibly informative, thank you so much!!!

  • @redgeoblaze3752
    @redgeoblaze3752 3 года назад +61

    Me every time I watch a Brackeys video: "Alright, sounds simple enough"
    Also me when I open up Unity: **90s Router Noises** **Stares Blankly**

  • @gamingklex9010
    @gamingklex9010 5 лет назад +11

    YEEEEES IT WORKS! I'm sit 4 hours here before i found the problem! THANKS!!!!

    • @farhannoermuhamad9100
      @farhannoermuhamad9100 4 года назад

      can you help me? when I play the game, the game load scene 2 instead of main menu, I've make sure that following the tutorial step by step

    • @ImZenger
      @ImZenger 4 года назад

      Nerd Addict In your build index do you have The Menu over the Game Scene? 9:16

    • @mehdib1781
      @mehdib1781 3 года назад

      PLEASE HELP, I DO NOT HAVE THE CHECKBOX, SO I CAN NOT MAKE IT TRUE OR FALSE IN ONCLICK()
      WHAT SHOULD I DO TO MAKE IT VISIBLE?????? THANK YOU.

  • @jonnycampbell5623
    @jonnycampbell5623 3 года назад

    This was a great guide by the way :) Found it MUCH easier to follow compared to others I've tried watching on Unity UI :D

  • @chaosmastermind
    @chaosmastermind 3 года назад

    That's pretty sweet.
    I had no idea about any of the UI or buttons. You are super helpful. Thanks.

  • @YasserSedrati
    @YasserSedrati 6 лет назад +150

    aaa I wait this tuto for a long time 🔥 and I like the new color for your logo

    • @Likax100
      @Likax100 6 лет назад

      Yasser Sedrati it actually reminds me of his first old logos with the banner and everything maybe he did that on purpose and it's a anniversary or something?

    • @steefman
      @steefman 6 лет назад +3

      The logo reminds me of the Instagram logo xD

    • @YasserSedrati
      @YasserSedrati 6 лет назад

      Plofgans yeah true 😂

    • @yasserarguelles4245
      @yasserarguelles4245 6 лет назад

      Yasser Sedrati Hey

    • @xylitol-tv8xm
      @xylitol-tv8xm 6 лет назад

      hey guys do you know how to import scene to another scene?

  • @Jasperkiller1
    @Jasperkiller1 6 лет назад +194

    I already know how to make a normal start game/quit game menu, but I never experimented with giving options functionality. Next tutorial a functional option menu would be a great idea :D
    Love the vids btw

    • @rohitalawa9306
      @rohitalawa9306 6 лет назад +1

      Jasperkiller1 yes

    • @bluesyntax5355
      @bluesyntax5355 4 года назад

      my buttons don't find the "main menu game object" do you know how to fix that?

  • @someone8370
    @someone8370 2 года назад

    Thanks mate! You helped me a lot with this tutorial, as i'm recently starting in Unity.

  • @tomaspetruz7774
    @tomaspetruz7774 3 года назад +2

    Very clear and straight-forward, even for a newbie like me!

  • @shadow3966
    @shadow3966 3 года назад +14

    If you are confused and can't find TextMesh Pro in the Asset store, it is already included with your version of Unity (This is only included with versions 2018 and higher)

    • @jey0122
      @jey0122 3 года назад

      Yess, I wondered about this. Tysm B)

  • @henrikhalvorsenkvamme2853
    @henrikhalvorsenkvamme2853 6 лет назад +7

    Like yor new logo!

  • @shaheerbutt9227
    @shaheerbutt9227 3 года назад

    Thank you man, this is an extremely helpful tutorial for a complete beginner like me.

  • @Yo_fox_YT
    @Yo_fox_YT 3 года назад +1

    Thanks for the tutorial, I was freaking out. When I saw your video, I finally maked my game main menu

  • @miksaa2867
    @miksaa2867 4 года назад +221

    I've watched a 49 minute video and didn't understand anything. In this video every thing makes sense!

    • @truth3410
      @truth3410 4 года назад +13

      Miksaa Right!! Man this channel is so useful! Its crazy how there are so many programmers out there willing to help others, a very unique community.

    • @alexandrufilipescu1301
      @alexandrufilipescu1301 4 года назад +3

      Where to get that background?

    • @miksaa2867
      @miksaa2867 4 года назад +2

      @@alexandrufilipescu1301 I think it's custom created one.

    • @maindepth8830
      @maindepth8830 4 года назад +2

      His tutorials are the best

    • @alexandrufilipescu1301
      @alexandrufilipescu1301 4 года назад +5

      @@miksaa2867 God bless you.

  • @eBuddy89
    @eBuddy89 4 года назад +1728

    Classic. You follow a simple tutorial, but nothing goes as expected because you're watching it a year late.

    • @Gamer-uf1kl
      @Gamer-uf1kl 4 года назад +48

      Lol it worked for me

    • @samivtg
      @samivtg 4 года назад +8

      @@cq5857 thanks dude

    • @SkeleGumz
      @SkeleGumz 4 года назад +7

      Worked for me

    • @kapilbadokar
      @kapilbadokar 4 года назад +33

      @@glitchifyed when i put my cursor on the button it doesn't get highlighted please help me??

    • @kapilbadokar
      @kapilbadokar 4 года назад +10

      when i put my cursor on the button it doesn't get highlighted please help me??

  • @costambysroka
    @costambysroka 3 месяца назад

    That was the best unity tutorial I have used in the entire youtube. Thank you very much!

    • @costambysroka
      @costambysroka 3 месяца назад

      btw I am so horrible, that I watched it for 2 hours... 13 minutes for 2 hours.

  • @ericmargules5602
    @ericmargules5602 Год назад +1

    Just wanna let you know that this is a really useful tutorial. Thank you!

  • @tyemonkey
    @tyemonkey 6 лет назад +116

    can you please make a video on how to make a full options menu with like resolution, graphics, working volume changer for all scenes, controls, etc. Thank You! This video was amazing and really helpful!

    • @pourmydrank
      @pourmydrank 6 лет назад +2

      Might be like 10 mins or 20 at most

    • @robbieboyable
      @robbieboyable 5 лет назад +1

      Check out Unity's default FPS 3D game, I beleive it has it in there you can learn from

  • @dibaterman
    @dibaterman 3 года назад +4

    Anyone using this guide in 2021 or later: You will probably get a SceneManagement error in your Unity Compiler following this guide. First be sure to download the latest version of Microsoft Visual Studio, next be sure to select "Game Development with Unity" when installing, and if you did not just go to Modify to add the version.
    Finally and most importantly be sure to in Unity go to Edit>Preferences and select your version of MVS as the preferred editor and if you need to set the compiler check box on. Later version of Unity do not seem to use compiler check box on though.
    After that you should be golden and can continue to follow this guide.

    • @Zugirf
      @Zugirf 2 года назад

      How do i go to Modify to add the version?

  • @fakefake6770
    @fakefake6770 Год назад +1

    I love your videos thank you so much for all the work and time you've put in them!!! Can't be thankful enough👍👍👍

  • @calvindebeverly7410
    @calvindebeverly7410 Год назад

    so very helpful. Can't wait to get a look at your other ones. Thank you so much.

  • @setsuzuya1751
    @setsuzuya1751 5 лет назад +135

    Just quick thing:
    Error: button stays highlighted after clicking it.
    Solution: change navigation to "none".

  • @incognito_mode5741
    @incognito_mode5741 3 года назад +3

    Thanks for making me write my first line of code! There´s a long way ahead lol.

  • @King.K.O
    @King.K.O 3 года назад

    LOVE THIS!.. got into some problems and had a hard time but at least works better than most youtubers

  • @abstractpotato1114
    @abstractpotato1114 3 года назад

    You have the best Unity tutorials on RUclips, this video really helped!

    • @Luckyproog
      @Luckyproog 3 года назад

      from where you got the Textmesh pro? the link is not working or you dont used it?

  • @iamlogdog
    @iamlogdog 6 лет назад +72

    I would love an options menu tutorial, and I think these are the things you should cover in it:
    - Resolution
    - Volume (and how to separate music volume and effects volume)
    - Graphics options
    - Mouse sensitivity
    I would also like a tutorial for key binds but I think thats a bit more advanced.
    Love your videos!

    • @supine-stsmore9609
      @supine-stsmore9609 6 лет назад +3

      Ik im late... Like really late. But in his simple game tutorial episodes if you watched it through he shows how to make a move you left and d move you right, you could improvise a little on the code and you would be able to make say L enable a colour change on your player, or obstacle for example. Im sure you know this, but this link docs.unity3d.com/ScriptReference/
      Shows you pretty much if not all codes you can use in unity, on the left just click UnityEngine if thats what you are using and then go from there! Good luck!

  • @leoncepin588
    @leoncepin588 6 лет назад +72

    Please make a tutorial on how to make a shop with SAVING pls 😊

    • @abowlofsoup6440
      @abowlofsoup6440 6 лет назад

      A shop with saving? Save files and shops should be two seperate video's. Or more, since save files require writing and reading from files and shops require items and currency.

    • @flashgames1273
      @flashgames1273 6 лет назад +1

      kje si nigga...

    • @mehmetalisecgin8255
      @mehmetalisecgin8255 6 лет назад

      Leon Čepin You should first learn how to save an read data. Then to make a shop.

    • @jacobrallos8841
      @jacobrallos8841 6 лет назад

      OMG Please. I NEED THIS. All the tutorials I have found describe it in such a vague way and I can never seem to get it right on my own.

    • @PurpleGround
      @PurpleGround 5 лет назад

      Just use a scriptable object

  • @theracer1222
    @theracer1222 2 года назад

    You are the best tutorial based youtuber i have encountered. You know how to make complex programming projects and neat coding that i have been looking for, for days. I wish you well and a brilliant career :), subscribed :)

  • @galileo542
    @galileo542 11 месяцев назад

    I'm watching this @2x and it's very coherent. Huge respect to you!

  • @polking5353
    @polking5353 2 года назад +15

    I just wanna say that its necessary to have the event system in your canvas, otherwise the button actions wont work i just had a problem when my button didnt work entirely when i deleted the event system , if u already did delete it go to create > UI >event system (Hope this helps someone).

    • @brixx2924
      @brixx2924 2 года назад +1

      YOU SAVED ME! I Spent too much time thinking why my button action doesn't work at all. But now it's working fine. Thank you so much!

    • @bubbleman0794
      @bubbleman0794 2 года назад +1

      Yoooo thank you i didnt know

    • @williamminerva
      @williamminerva 5 месяцев назад

      THANK YOU SO MUCH

  • @koseki_stuff
    @koseki_stuff 3 года назад +28

    RIP Brackeys. You will be missed.. :(

    • @laslodes2550
      @laslodes2550 3 года назад

      is he dead?

    • @bluerhino1046
      @bluerhino1046 3 года назад +6

      @@laslodes2550 well his channel is because he stopped it

    • @FortniteBalls9669
      @FortniteBalls9669 3 года назад

      Does this work on the newest Unity version?

    • @Rosstail
      @Rosstail 3 года назад +2

      @@FortniteBalls9669 It works with the latest version. You don't have to import the TMP, Unity has it by default now

  • @daviddefterigos3473
    @daviddefterigos3473 2 месяца назад

    6 years later and these tutorials are still the best I've seen

  • @alessandromascarello8654
    @alessandromascarello8654 2 года назад

    Man, its just awesome. your work is fantastic simples a accurated.
    RUclips you miss you and your content of unity features

  • @ELMlKO
    @ELMlKO 6 лет назад +5

    Hello, I Wanted To Ask You How Can I Make An Outline Of An Object If It's Behind A Wall
    Thanks

  • @kanako03
    @kanako03 11 месяцев назад +8

    'public void PlayGame ()' if you do not have the PlayGame function, then you should remove the space in the code like this 'public void PlayGame()'. If you get errors then you probably didn't add 'using UnityEngine.SceneManagement;' to the very top of the code (maybe it will help someone)

    • @GameKandy
      @GameKandy 10 месяцев назад +1

      This helped a lot, couldn’t find why I was having errors. Thank you!

  • @smily106
    @smily106 2 года назад

    Thank you so much, I was so worried about having to do this! Though it seems unity makes it pretty easy no surprise!

  • @quimerico
    @quimerico 3 года назад +1

    So beautiful, my game from basic Unity tutorial now have a start screen! :D

  • @Santosh-tq4nj
    @Santosh-tq4nj 6 лет назад +4

    Hey, Brackeys love your tutorials man! But sometimes I can't see my menu text neither in Scene nor in Game. I'm new to Unity. Am I missing something?

  • @Drakaniel
    @Drakaniel 3 года назад +27

    For those who, like me, had a "no function" in the dropdown list of the On Click () behavior, here is what to do:
    1) When you created you UI, Unity created a GameObject called "EventSystem".
    2) Select "EventSystem" and attach the MainMenu script
    3) In the PlayButton and QuitButton, instead of attaching the MainMenu script on the On Click () behavior, attach the "EventSystem" object
    4) Now it will show the functions correctly in the dropdown list :)

  • @markchan1387
    @markchan1387 4 года назад

    Awesome tutorial Brackey. Keep up the good work!

  • @mtnash7337
    @mtnash7337 Год назад

    I'm pretty sure tears came out of my eyes when I got to the end of the video.
    Thanks so much! :)

  • @dwaghe2444
    @dwaghe2444 3 года назад +7

    Before watching Brackeys : *spends 3 hours to make a single menu button*
    After watching Brackeys : "finishes the Menu in just 15 mins*

  • @viniciusqueiroz2713
    @viniciusqueiroz2713 3 года назад +3

    UPDATE: If it's not working at all, you might be using the new Input System instead of the Legacy one. Check that (Project Settings -> Player -> Active Input Handling), and if you are, make sure your Event System is updated, containing the new InputSystemUIInputModule. Then apply your inputs in the Actions Asset and assign the inputs to the events ("point", "left click", "submit", etc.). That solved it for me.

    • @Sahil-rs3wu
      @Sahil-rs3wu 3 года назад

      im in the player section but cant find the active input handling thing

  • @pitifulrock630
    @pitifulrock630 3 года назад

    i scaled up my background and made an animation for it to sway and slapped on some lemmino music. holy MOLY is my game looking good! cant wait to release it! thank you brackeys for everything you've done for us! youre the reason i can actually be a game dev

  • @muhammadmuffarijhammad2911
    @muhammadmuffarijhammad2911 3 года назад

    I always wondered how to do that. Thanks Brackeys!

  • @skylinefx049
    @skylinefx049 3 года назад +7

    I can't find TextMesh Pro: default backend - 404
    Edit: TextMesh Pro is now by default into Unity

  • @victrozzz
    @victrozzz 3 года назад +19

    If nothing happens when you click your button, it's because the text is blocking the button. To stop this, go to the button text (TextMeshPro), go under Extra Settings, and turn "Raycast Target" off.
    I struggled with this, so I hope this helps.

    • @tonybr888
      @tonybr888 3 года назад +3

      Yes, this helped me! Thanks. Also, for anyone reading this, pushing your button to the bottom of the hierarchy could help too, other UI elements could be blocking your button.

    • @jonasnirisrud5832
      @jonasnirisrud5832 3 года назад

      Thank you!

    • @yashigaur6838
      @yashigaur6838 3 года назад

      Thank you so much!! This frustrated me for a while until i found your comment :) :) :)

    • @Tugiiii
      @Tugiiii 2 года назад

      My goodness, I love you! Thank you!

  • @icefox2853
    @icefox2853 3 года назад +1

    Thank you bruh! You are really a good man! This lesson is perfect.

  • @Astra2
    @Astra2 7 месяцев назад

    Absolutely, unbelievable, unspeakably... INCREDIBLE!

  • @gary-huang
    @gary-huang 6 лет назад +10

    Please make a video about game optimization. Plz

    • @Mr.Adhesive
      @Mr.Adhesive 6 лет назад

      Gai Gai that would be hard if not impossible for him to make. Not only is it extremely vague (most optimizations depend on the program you are writing), but computers are so advanced today that the optimizations he could talk about do not really do anything.

    • @jamesbright2856
      @jamesbright2856 6 лет назад

      Speedtutor has a video on it

  • @NovaHavoc
    @NovaHavoc 6 лет назад +4

    Do an options menu!

  • @herbertwyndham
    @herbertwyndham 3 года назад

    Super helpful tutorial! Thank goodness for the pause button.

  • @dr.goshleorio8343
    @dr.goshleorio8343 11 месяцев назад

    This channel is the best. Really miss they stopped making new content.

  • @alasdairingham2095
    @alasdairingham2095 3 года назад +8

    For anyone whose button isn't highlighting on hover or click, try adding a "UI -> Event System" to the menu scene.

    • @alasdairingham2095
      @alasdairingham2095 3 года назад

      @@inigowilloughby7285 Sorry to hear about that, it's just like how you'd add a button or text Game Object just you need to add an Event system object instead. If this is what you've done and you can't find it then I'm not sure what to do, I'm a novice really when it comes to unity I was just relaying what worked for me in my original comment.

    • @NoxforLeBg
      @NoxforLeBg 2 года назад

      @@alasdairingham2095 thank you so much you saved me

    • @stylaender
      @stylaender Год назад

      wonderful, I deleted that one. Thank you so much!

  • @bisharakhuri2504
    @bisharakhuri2504 4 года назад +5

    5:55 just a reminder for me :D

  • @patrickjay6434
    @patrickjay6434 2 года назад +1

    Really great and helpful tutorial, thanks for sharing 👍🏿

  • @PixelWitch
    @PixelWitch 3 года назад

    So helpful as always. This made it so easy!

  • @oscarsmith-jones4108
    @oscarsmith-jones4108 6 лет назад +20

    brackies, could you teach us how to do splitscreen? UI on split screen would be nice too. that would be great!

    • @kevindelbecq4905
      @kevindelbecq4905 6 лет назад +5

      you render the image of each player's camera on a raw image. then you create a panel displaying both images at the same time. done

    • @HAWXLEADER
      @HAWXLEADER 6 лет назад +5

      kevin delbecq That would be hard and heavy, it's a nice idea you have but you can just set the cameras to only render half the screen in the inspector...

  • @obc257
    @obc257 3 года назад +19

    Me: Makes A great Game In Unity
    EventSystem: *No way*

    • @mehdib1781
      @mehdib1781 3 года назад +1

      PLEASE HELP, I DO NOT HAVE THE CHECKBOX, SO I CAN NOT MAKE IT TRUE OR FALSE IN ONCLICK()
      WHAT SHOULD I DO TO MAKE IT VISIBLE?????? THANK YOU.

    • @obc257
      @obc257 3 года назад

      @@mehdib1781 You need to make the play, settings, quit as a button

    • @mehdib1781
      @mehdib1781 3 года назад

      @@obc257 Please show me, i do not know how to do it :)

    • @danzy182
      @danzy182 3 года назад

      @@mehdib1781 Same

    • @mehdib1781
      @mehdib1781 3 года назад

      @@danzy182 How did you fixed it? Thanks :) can you see the checkbox?

  • @broken-code
    @broken-code 3 года назад

    Thank you for making this video it helped me a lot kept up the hard work!

  • @iliachakarov7285
    @iliachakarov7285 9 месяцев назад

    Really enjoyed it! and very helpful!!

  • @not_a_cow
    @not_a_cow Год назад +3

    too the 2 peopel that have the same problem as me where the buttons wont even highlight, make the eventsystem a child of your canvas, then look at the component. if the input system seems to have an error LOOK AT IT it will tell you to update the input system with a very handy button below that to do it for you. i was struggling for 40 minutes before I figured out to do this

    • @Mr_Wolfkin
      @Mr_Wolfkin Год назад +1

      Bloody fucking lad right here, major props my dude... also when typing this it's at two likes so bravo

  • @salahboujlit3747
    @salahboujlit3747 5 лет назад +776

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using UnityEngine.SceneManagement;
    public class NewBehaviourScript : MonoBehaviour {
    public void PlayGame ()
    {
    SceneManager.LoadScene (SceneManager.GetActiveScene ().buildIndex + 1);
    }

    public void QuitGame ()
    {
    Debug.Log ("QUIT!");
    Application.Quit();
    }

    }

    • @hadoom848
      @hadoom848 4 года назад +37

      Thanks! But it is not very complicated, I do not think this was necessary.

    • @sl7722
      @sl7722 4 года назад +127

      @@hadoom848 complicated? (s)he did it to save us time

    • @allright9636
      @allright9636 4 года назад +1

      Thank you so much

    • @AtomHMusic
      @AtomHMusic 4 года назад +1

      Thank You!

    • @hunterx6886
      @hunterx6886 4 года назад +7

      you are legend you save my time thx so mush

  • @idrissgaming9600
    @idrissgaming9600 2 года назад +1

    Thank you so much 🥰🥰🥰, this was so helpful. I really don't know how to code in unity, but there is a very good hint from you.

  • @mitulmahish6145
    @mitulmahish6145 3 года назад

    This video is really cool and helped me a lot and it's a very simple way of making a start menu.

  • @trygveisaksen5887
    @trygveisaksen5887 5 лет назад +5

    Hi. With newer versions of unity, you already have textmesh pro. You will get many errors if you try to download it like you did. Just a heads up. Personaly i think they now should delete the way to import it. Older versions than 18.2 dont get this problem

    • @alvinseptiano
      @alvinseptiano 5 лет назад

      you right

    • @Clipstv
      @Clipstv 5 лет назад

      they wont delete the import for a while cause a lot of people are still running older versions of unity

    • @trygveisaksen5887
      @trygveisaksen5887 5 лет назад

      Maybe getting a warnong would be smart🤔🤔

    • @trygveisaksen5887
      @trygveisaksen5887 5 лет назад

      Warning**

  • @zecaxy5650
    @zecaxy5650 6 лет назад +5

    What's the best way to learn unity? From not knowing C# or anything to being decent? Best tutorial? (I mostly want to do 2d)

    • @Mr.Adhesive
      @Mr.Adhesive 6 лет назад +1

      ZeCaxy just play around with stuff. Set goals and when you can't reach one without research, then research it. Start small, and big. For example start with giving a rigid body a force in a random direction. End with a random maze generator that uses a nueral network to solve it. It obviously helps if you know programming before hand.
      The internet is your friend!

    • @Dacommenta
      @Dacommenta 6 лет назад +3

      Mr. Adhesive I was the same as you. Learning 3D first helps so much. Then move to 2d

    • @starlord1521
      @starlord1521 6 лет назад +1

      ZeCaxy start small, think of a simple game mechanic you want to implement and research it and make your game around it.

    • @zecaxy5650
      @zecaxy5650 6 лет назад +1

      Thanks

    • @starlord1521
      @starlord1521 6 лет назад

      ZeCaxy no problem.

  • @CharlieRaggio
    @CharlieRaggio 2 года назад +1

    I appreciate your tutorials my brother ... congratulations and good video!!!

  • @leojuro
    @leojuro 5 месяцев назад

    This is such a simple and amazing tutorial thank you!!!!!!!!