START MENU in Unity

Поділитися
Вставка
  • Опубліковано 5 лют 2025
  • Learn how to make a main menu using Unity!
    ● www.assetstore...
    ● Developer Forum: forum.brackeys....
    ❤️ Donate: www.paypal.com...
    ····················································································
    ► 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...
    ········································­­·······································­·­····
    ♪ Baby Plays Electro Games
    teknoaxe.com/cg...

КОМЕНТАРІ • 3,6 тис.

  • @bshaun2740
    @bshaun2740 3 роки тому +916

    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).

  • @Adix_Null
    @Adix_Null 4 роки тому +1926

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

      true af

    • @dubby7189
      @dubby7189 4 роки тому +8

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

    • @dubby7189
      @dubby7189 4 роки тому +3

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

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

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

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

      @@Adix_Null what?

  • @krzan_kristina_3d_rigging219
    @krzan_kristina_3d_rigging219 3 роки тому +212

    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

    • @ZomBee04
      @ZomBee04 2 роки тому +7

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

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

  • @Pkai1000
    @Pkai1000 4 роки тому +333

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

  • @Leeyouno
    @Leeyouno 4 роки тому +1795

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

    • @TinyDeskEngineer
      @TinyDeskEngineer 4 роки тому +320

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

    • @IGNACY-fp8zo
      @IGNACY-fp8zo 4 роки тому +5

      I hope its like that

    • @manychat_learn
      @manychat_learn 4 роки тому +8

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

    • @manychat_learn
      @manychat_learn 4 роки тому +3

      @@earthIing he talked about it

    • @manychat_learn
      @manychat_learn 4 роки тому +4

      @@earthIing 7:55

  • @KuzmaProDev
    @KuzmaProDev 2 роки тому +27

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

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

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

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

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

  • @redgeoblaze3752
    @redgeoblaze3752 4 роки тому +70

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

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

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

  • @Mora_Saim1
    @Mora_Saim1 4 роки тому +472

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

    • @foggyforest2625
      @foggyforest2625 4 роки тому +11

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

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

      true!

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

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

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

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

  • @LetsOoggeSquad
    @LetsOoggeSquad 5 років тому +35

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

  • @blackwatch4709
    @blackwatch4709 6 років тому +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

  • @stevencvisuals
    @stevencvisuals 4 роки тому +735

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

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

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

      @@fashlehd6883 Ik same for me

    • @redek4724
      @redek4724 4 роки тому +2

      @@fashlehd6883 me too

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

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

  • @aregee4liff
    @aregee4liff 5 років тому +8

    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!

  • @icoivo5529
    @icoivo5529 7 років тому +27

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

    • @Owen3H
      @Owen3H 7 років тому +1

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

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

  • @TechnicJelle
    @TechnicJelle 7 років тому +674

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

    • @Sparrow420
      @Sparrow420 7 років тому +26

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

    • @Owen3H
      @Owen3H 7 років тому +19

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

    • @mahmoudshatnawi6122
      @mahmoudshatnawi6122 7 років тому +2

      Sparrow, same with me haha!
      +thanks Codey!

    • @Owen3H
      @Owen3H 7 років тому

      Mahmoud Shatnawi No problem :)

    • @JohnWeland
      @JohnWeland 7 років тому +2

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

  • @aussieraver7182
    @aussieraver7182 5 років тому +8

    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!

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

    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.

  • @miksaa2867
    @miksaa2867 5 років тому +224

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

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

    • @Gamer-uf1kl
      @Gamer-uf1kl 4 роки тому +50

      Lol it worked for me

    • @samivtg
      @samivtg 4 роки тому +10

      @@Bluequaz thanks dude

    • @SkeleGumz
      @SkeleGumz 4 роки тому +8

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

  • @daviddefterigos3473
    @daviddefterigos3473 11 місяців тому

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

  • @iamlogdog
    @iamlogdog 7 років тому +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!

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

      Jasperkiller1 yes

    • @bluesyntax5355
      @bluesyntax5355 5 років тому

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

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

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

  • @Frostyno287
    @Frostyno287 7 років тому +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!

  • @kurtcalanlang3893
    @kurtcalanlang3893 4 роки тому +7

    Thank you so much!

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

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

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

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

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

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

    this help me with my college assignment alot, i love brackeys, i dont know why he quit. He is the best person on youtube for unity. He is better then my college course which doesn't teach me how to make a game yet its a games development course. Thankfully I have brackeys!

  • @shivamchauhan2673
    @shivamchauhan2673 6 років тому +33

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

  • @salahboujlit3747
    @salahboujlit3747 6 років тому +777

    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 5 років тому +37

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

    • @sl7722
      @sl7722 5 років тому +128

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

    • @allright9636
      @allright9636 5 років тому +2

      Thank you so much

    • @AtomHMusic
      @AtomHMusic 5 років тому +2

      Thank You!

    • @TaimSawan
      @TaimSawan 5 років тому +6

      you are legend you save my time thx so mush

  • @dapjnekerem2945
    @dapjnekerem2945 28 днів тому

    genuinely he turned an absolute unity noob into a still unity noob who at least can make a decent game UI. i have adhd and his explanation and methodology was so damn clear and easy to follow. chefs kiss and big props to you, my g. ily forever

  • @slubbehedits9302
    @slubbehedits9302 6 років тому +23

    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.

  • @gamingklex9010
    @gamingklex9010 5 років тому +11

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

    • @farhannoermuhamad9100
      @farhannoermuhamad9100 5 років тому

      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 5 років тому

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

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

      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.

  • @dr.goshleorio8343
    @dr.goshleorio8343 Рік тому

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

  • @YasserSedrati
    @YasserSedrati 7 років тому +150

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

    • @Likax100
      @Likax100 7 років тому

      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 7 років тому +3

      The logo reminds me of the Instagram logo xD

    • @YasserSedrati
      @YasserSedrati 7 років тому

      Plofgans yeah true 😂

    • @yasserarguelles4245
      @yasserarguelles4245 7 років тому

      Yasser Sedrati Hey

    • @xylitol-tv8xm
      @xylitol-tv8xm 7 років тому

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

  • @koseki_stuff
    @koseki_stuff 4 роки тому +29

    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

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

      @@bluerhino1046 HE's BACK WITH GODOT! CHECK HIS LATEST VIDEOS

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

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

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

      How do i go to Modify to add the version?

  • @dwaghe2444
    @dwaghe2444 3 роки тому +9

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

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

    I've made Jumpy Cube game with the help of Brackeys videos. Such a nice guy to share all his skills with us.

  • @tyemonkey
    @tyemonkey 7 років тому +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 7 років тому +2

      Might be like 10 mins or 20 at most

    • @robbieboyable
      @robbieboyable 6 років тому +1

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

  • @Drakaniel
    @Drakaniel 4 роки тому +28

    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 :)

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

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

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

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

  • @setsuzuya1751
    @setsuzuya1751 6 років тому +137

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

  • @obc257
    @obc257 4 роки тому +19

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

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

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

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

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

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

      @@LeHalazoone Same

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

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

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

    HIs tutorials aren't for the absolute beginner who don't want to do any coding but if you aren't that way and know your way around Visual Studio, or some other development platform, you will learn at least 5 cool new things in his quick 10-15 minute tutorials. I'll admit I'm still fairly new to Unity development but I've done a lot of game modding in the past so learning it isn't hard and I love Brackey's tutorials. Quick, to the point, and still very useful and informative.

  • @polking5353
    @polking5353 3 роки тому +16

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

      Yoooo thank you i didnt know

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

      THANK YOU SO MUCH

  • @incognito_mode5741
    @incognito_mode5741 4 роки тому +3

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

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

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

  • @titkosaaron4067
    @titkosaaron4067 3 роки тому +3

    For anyone who cant find TextMeshPro -
    Window -> TextMeshPro -> Import TMP Essential Resources
    Its built in already!

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

      ohhhhh thanks

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

      You saved me thanks so much man

  • @leoncepin588
    @leoncepin588 7 років тому +72

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

    • @abowlofsoup6440
      @abowlofsoup6440 7 років тому

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

      kje si nigga...

    • @mehmetalisecgin8255
      @mehmetalisecgin8255 7 років тому

      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 6 років тому

      Just use a scriptable object

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

    I saw this entire tutorial and did it too..Then i went out.And then all of a suddden i remembered that i forgot to like the video. So here i am rn,i liked and commented too..Your videos are really helpful.I have tried many other video tutorials for unity.BUT U R THE BEST!!!!!

  • @gavanscommandblock
    @gavanscommandblock 4 роки тому +4

    me: copies start code
    Unity:ERROR GO BRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR

  • @henrikhalvorsenkvamme2853
    @henrikhalvorsenkvamme2853 7 років тому +7

    Like yor new logo!

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

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

  • @alasdairingham2095
    @alasdairingham2095 3 роки тому +7

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

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

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

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

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

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

  • @kanako03
    @kanako03 Рік тому +9

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

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

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

    well the text doesnt show up, awesome! what a happy moment! i did not break my keyboard trying to fix this!

  • @BannedFromJordo
    @BannedFromJordo 4 роки тому +12

    "Lets make this slider wider..."
    Big Brack 2020

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

      Oh my boy Big brack

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

      more like T H I C C

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

      @@gleqy please say that was a dani reference...

  • @user-rv3wd9ql5d
    @user-rv3wd9ql5d 4 роки тому +6

    If any of you have the same problem as me, here ya go: Your image is probably going to be unable to be dragged to the source image, so just click your imported image (to import it just drag it to the assets box) and in the “Texture type” box, select sprite, then click again on the panel, (a window might appear, click confirm or yes whatever it says) and click on the source image and on the circle with a small circle on the right side, click there and the menu should be on the asset.

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

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

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

  • @NixinovaMC
    @NixinovaMC 5 років тому +13

    Here's some useful code for if you want the text "Loading" to appear while you change scenes:
    using UnityEngine;using UnityEngine.UI;using UnityEngine.SceneManagement;
    public class MainMenu : MonoBehaviour {
    public void Play () {
    GameObject loading = new GameObject("LoadingText");
    loading.transform.SetParent(this.transform);
    loading.AddComponent().text = "Loading...";
    Text loadingText = loading.GetComponent();
    loadingText.font = Resources.GetBuiltinResource(typeof(Font), "Arial.ttf") as Font;
    loadingText.transform.position = new Vector3(522, -21);
    loadingText.fontSize = 22;
    loadingText.alignment = TextAnchor.UpperCenter;
    Instantiate(loading);
    SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
    }

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

      It doesn't do anything mate

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

      @@necrago it does, mine shows up in the bottom right of the window when clicking play

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

    You have the best Unity tutorials on UA-cam, this video really helped!

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

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

  • @jackwest9099
    @jackwest9099 7 років тому +386

    "THIS IS A GAME" 😂

  • @bisharakhuri2504
    @bisharakhuri2504 5 років тому +5

    5:55 just a reminder for me :D

  • @King.K.O
    @King.K.O 4 роки тому

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

  • @Larry55P
    @Larry55P 7 років тому +41

    I have enjoyed your tutorials for a few years, but lately you do them so fast. It looks and sounds like you are in a race to finish in record time, and it's hard to follow along. I still like your tutorials though. :)

    • @tobywest8887
      @tobywest8887 7 років тому +2

      true

    • @yeetus2290
      @yeetus2290 6 років тому +9

      La maitre course That's... not true. If he wanted YT money, he would talk much slower, to make his videos longer. Unless I'm "woooosh"-ing, in which case, Pardon.

    • @elingranath
      @elingranath 6 років тому +4

      I kinda like how straight-forward it is. I tend to lose concentration if it's a long video or not even click in the first place. 10-15 videos are perfect for me. If I don't understand something, I just go back and watch again.

    • @comatose9907
      @comatose9907 6 років тому +3

      Videos come with a sweet option called pause ...

    • @galaxy4dayz
      @galaxy4dayz 6 років тому

      XD@@comatose9907

  • @skylinefx049
    @skylinefx049 3 роки тому +7

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

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

    Very late and also I never leave UA-cam comments but I had to for this one - I am a fairly experienced programmer and even I spent an embarrassing amount trying to figure this out. Video solved it for me in ten minutes you are a God sir

  • @KodaBunn
    @KodaBunn 7 років тому +4

    "the menu may be more fun than the game rn"
    NAH i like looking at plain black screens with small white text all day long...I got really good at it :D

  • @just.james.
    @just.james. 4 роки тому +3

    Hello, i have another question: When i drag the "MainMenu" Object in the "OnClick" Thingy i cant select "MainMenu" on the Functions. Only "RectTransform" and "GameObject". Why? Please help me

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

      You need to create an empty object in the scene, put the Main Menu script into the Empty Object, and then drag this Empty Object or the Main Menu script into on click. Basicly you need instantiate the script in the Scene

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

    For those saying that the highlighting doesn't work, make sure you have the EventSystem active in the canvas.
    Thanks for the video, cheers

  • @gary-huang
    @gary-huang 7 років тому +10

    Please make a video about game optimization. Plz

    • @Mr.Adhesive
      @Mr.Adhesive 7 років тому

      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 7 років тому

      Speedtutor has a video on it

  • @Vaene712
    @Vaene712 5 років тому +5

    On the Scipt Button menu, when I have to choose which function I want to run, the only option that shows up is "string name", why does it happen?

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

      Maybe you forgot to make the method public

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

      I had the exact same problem - as I now found out, I dragged the whole "Menu" scene on top level instead of the "MainMenu" object with the menu elements and the script. Try watching 9:38 and take good care which element he actually drags.

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

      @@willichillmann9463 I only dragged "MainMenu" from the Hierarchy and I still don't get the option to select "MainMenu" as the function. Any help on that?

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

      ​@@memerightsactivist7972 If the "MainMenu" in the Hierarchy has the script for the button attached as a component, you should see see it in the drop-down after dragging the "MainMenu" from the Hierarchy to the playButton. I really hope this helps!

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

    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 :)

  • @trygveisaksen5887
    @trygveisaksen5887 6 років тому +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 6 років тому

      you right

    • @Clipstv
      @Clipstv 6 років тому

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

    • @trygveisaksen5887
      @trygveisaksen5887 6 років тому

      Maybe getting a warnong would be smart🤔🤔

    • @trygveisaksen5887
      @trygveisaksen5887 6 років тому

      Warning**

  • @FortniteBalls9669
    @FortniteBalls9669 3 роки тому +3

    I'm getting this error: Scene with build index: 2 couldn't be loaded because it has not been added to the build settings.
    To add a scene to the build settings use the menu File->Build Settings...
    UnityEngine.SceneManagement.SceneManager:LoadScene (int)
    MainMenu:PlayGame () (at Assets/Scripts/MainMenu.cs:10)
    UnityEngine.EventSystems.EventSystem:Update ()
    Any help please?

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

      I have the same error🥲

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

      @@maximusjr7550 So I just searched “Bmo 5 minute Unity ui” and found the perfect tutorial so you can combine this vid with that Bmo 5 minute vid. Hope this helped 😊

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

      @@FortniteBalls9669 thanks bro ✌

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

      Im getting this error:scenemangement does not found in namespace 'unity engine' what should i do

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

      @@odev8667 look at my comment above. This brackeys vid is outdated

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

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

  • @zecaxy5650
    @zecaxy5650 7 років тому +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 7 років тому +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 7 років тому +3

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

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

      Thanks

    • @starlord1521
      @starlord1521 7 років тому

      ZeCaxy no problem.

  • @ELMlKO
    @ELMlKO 7 років тому +5

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

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

    I am new to Unity, actually a noob. However the series are quite helpful and very detailed in teaching proficiency. Interesting

  • @BoardGameMaker4108
    @BoardGameMaker4108 7 років тому +20

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

    • @kevindelbecq4905
      @kevindelbecq4905 7 років тому +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 7 років тому +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...

  • @anonmouscat2086
    @anonmouscat2086 4 роки тому +7

    My text disappears when I duplicate the menu. Does anyone know how to fix this?

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

      move it in front of the panel/canvas in 3d mode

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

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

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

  • @DavidBrit101
    @DavidBrit101 5 років тому +11

    1:56 When I tried doing this, it asks me to import the TMP essentials, examples and extras. But I can't click on the import buttons though.

    • @DavidBrit101
      @DavidBrit101 5 років тому +8

      Problem solved, if you are also having this issue, go to Window in the toolbar and form there TextMesh Pro->Import essentials

    • @AtomStudiosFX
      @AtomStudiosFX 5 років тому +2

      @@DavidBrit101 thanks

    • @DavidBrit101
      @DavidBrit101 5 років тому

      @@AtomStudiosFX You're welcome :)

    • @TheMrBranoo
      @TheMrBranoo 5 років тому

      Thanks a lot!

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

    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

  • @imbob9868
    @imbob9868 5 років тому +4

    I am using this video for my new game but I can’t get the play button to work

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

      I cant hover over it

  • @bluesyntax5355
    @bluesyntax5355 5 років тому +5

    when i want to select the script in the playbutton it did not pop up only transform and game object.
    pls help

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

    Absolutely, unbelievable, unspeakably... INCREDIBLE!

  • @marbldidnttry
    @marbldidnttry 6 років тому +9

    My button disappears when I play the game
    I was able to fix but I am extremely sorry to say that I have no clue how I did it,

    • @songlovers3426
      @songlovers3426 6 років тому +2

      sounds like Unity xD
      things get fixed: no idea how/why
      things break: no idea how/why

    • @1sanex503
      @1sanex503 5 років тому

      лох

  • @CL3NRcProductions
    @CL3NRcProductions 6 років тому +5

    im having an issue. I cant interact with my menu at all!
    EDIT: nvm, aparently i needed an event system in my canvas

    • @t-ronthegorillafeeder838
      @t-ronthegorillafeeder838 6 років тому +4

      CL3NR c 2 you just saved me from a life of pain, thanks
      Edit: I subbed because you gave my life meaning 😊

    • @jacobwarren1498
      @jacobwarren1498 7 місяців тому

      This needs to be the top comment! TYSM!

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

    oh boy another Brakeys tutorial that I will spend 5 days on

  • @sp1kewalk3r49
    @sp1kewalk3r49 4 роки тому +5

    Ik it's like 2 years later but I would really like to know how I can make a background that moves ?

    • @TehYosher
      @TehYosher 4 роки тому +10

      -Have a video of your desired background and exported is as an mp4.
      -Open your menu scene in unity
      -GameObject > Video > Video Player
      -View your video player in the inspector
      -Set video clip to your mp4
      -Enable looping
      -Set render camera far plane
      -Drag in your main camera into the camera slot
      -Within your video player's inspector click "Add Component"
      -Type "Rect Transform"
      -In Rect Transform use the values: POSX: 960 | POSY: 540 | POSZ: 0
      (The above assumes a 16:9 aspect ratio)
      -At the top of the inspector set layer to UI.
      Hope this helps

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

      I just animated it

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

      @@TehYosher thanks man even tho im 1 year later